Git Product home page Git Product logo

ai-girlfriend's Introduction

AI-Girlfriend

Partner Image

This project integrates a FastAPI backend with an Angular frontend to create a conversational AI interface. The backend is responsible for communicating with OpenAI's APIs for chat generation and image creation. The frontend provides the interactive user interface for chat and displays the generated images.

Backend

The backend service is built with FastAPI. It handles requests from the frontend, communicates with OpenAI's API, and returns the AI's responses and images back to the frontend.

Setup

To set up and run the backend:

  1. Navigate to the backend directory from the root of the project.

  2. Install the dependencies using pip:

pip install -r requirements.txt

Start the FastAPI server:

uvicorn app:app --reload --port 8000

Configuration

Ensure that you have the following environment variables set:

  • OPENAI_API_KEY: Your OpenAI API key.

Frontend

The frontend is an Angular application that provides the chat UI. Users can send messages, receive responses, and view images generated by the AI.

Setup

To get the frontend up and running:

  1. Navigate to the frontend directory from the root of the project.

  2. Install the dependencies with npm:

npm install

Serve the application locally:

ng serve

Open your web browser and go to http://localhost:4200 to view the application.

Make sure the backend service is running as the frontend will need to communicate with it to function properly.

ai-girlfriend's People

Contributors

coding-crashkurse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.