Spaces:
Paused
Paused
File size: 1,346 Bytes
6bb8174 7dc9d46 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
---
title: ChatBot MVP
emoji: π
colorFrom: pink
colorTo: gray
sdk: gradio
sdk_version: 5.46.0
app_file: app.py
pinned: false
---
# ChatBot MVP for Customer Support
A Minimum Viable Product (MVP) customer support chatbot built with Gradio and OpenAI's GPT API, designed for Hugging Face Spaces.
## Features
- Intent recognition
- Entity extraction
- Conversation state management (remembers entities across turns)
- Context-aware response generation
- Clean Gradio chat UI
- API key and environment variable support
## Setup
1. **Clone the repository**
2. **Install dependencies:**
```bash
pip install -r requirements.txt
# or manually:
pip install gradio openai python-dotenv
```
3. **Create a `.env` file** in the root directory with your API keys:
```env
OPENAI_API_KEY=your_openai_api_key
```
(Other keys are optional for this MVP)
## Running the App
```bash
python app.py
```
The app will launch a Gradio interface in your browser.
## Example Usage
- Ask about order status, product info, or submit a complaint.
- The bot will extract your intent and relevant entities, and remember them for follow-up questions.
## Hugging Face Spaces
This project is ready for deployment on Hugging Face Spaces with Gradio SDK.
## Configuration Reference
See: https://huggingface.co/docs/hub/spaces-config-reference
|