CSS · Shipped
A simple ChatGPT-like chatbot website built with Python and Flask.
A simple ChatGPT-like chatbot website built with Python (Flask) and Hugging Face.
# 1) Create and activate virtual environment
python -m venv .venv
# Windows:
.venv\Scripts\activate
# macOS/Linux:
# source .venv/bin/activate
# 2) Install dependencies
pip install -r LLM_application_chatbot/requirements.txt
# 3) Run the Flask app
python app.py
# Server runs at: http://127.0.0.1:5000
POST /chatbot #Request Body
{ "prompt": "Hello" }
Response
{ "response": "Hi!" }
Open http://127.0.0.1:5000 in your browser to use the web interface.
file://, enable CORS in Flask..env (copy from .env.example).MIT