Skip to content

DialogueDepotAI-Flask zip file demonstrates an adept integration of Hugging Face's Transformers library, providing a robust backend for real-time AI-generated responses in the DialogueDepot AI chat app. The code exhibits clean organization, efficient Flask routing, and seamless Dockerization

License

Notifications You must be signed in to change notification settings

HacktivSpace/dialoguedepotai-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DialogueDepot AI Flask API

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.

Table of Contents

Setup

  1. Clone the repository:

    git clone <repository-url>
  2. Navigate to the dialogue-depot-flask-api directory:

    cd dialogue-depot-flask-api
  3. Install dependencies:

    pip install -r requirements.txt

Usage

To run the Flask API locally, execute the following command:

python app.py

The API will be accessible at http://localhost:8000.

Endpoints

  • POST /:

    • Generates AI responses based on user input.
  • POST /api:

    • Accepts JSON input for generating AI responses.

Dockerization

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

Tech Stack

  • Python
  • Flask
  • Transformers Library
  • Docker

Model

The API utilizes a pre-trained language model from the Hugging Face Transformers library for generating natural language responses.

Contact

For inquiries or support, please contact:

About

DialogueDepotAI-Flask zip file demonstrates an adept integration of Hugging Face's Transformers library, providing a robust backend for real-time AI-generated responses in the DialogueDepot AI chat app. The code exhibits clean organization, efficient Flask routing, and seamless Dockerization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published