Welcome to the Flask API of DialogueDepot AI! This API serves as the backend for generating AI responses in real-time within the DialogueDepot AI chat application.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the
dialogue-depot-flask-api
directory:cd dialogue-depot-flask-api
-
Install dependencies:
pip install -r requirements.txt
To run the Flask API locally, execute the following command:
python app.py
The API will be accessible at http://localhost:8000
.
-
POST /:
- Generates AI responses based on user input.
-
POST /api:
- Accepts JSON input for generating AI responses.
The API can be containerized using Docker. Ensure Docker is installed, then build the Docker image:
docker build -t dialogue-depot-flask-api .
Run the Docker container:
docker run -p 8000:8000 dialogue-depot-flask-api
- Python
- Flask
- Transformers Library
- Docker
The API utilizes a pre-trained language model from the Hugging Face Transformers library for generating natural language responses.
For inquiries or support, please contact:
- Email: your-email@example.com
- GitHub: Your GitHub Username