File size: 1,591 Bytes
3559931
 
 
 
 
 
 
 
 
 
 
 
 
 
d538a8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: AiAssistant
emoji: πŸ†
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
license: apache-2.0
short_description: AiAssistant
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# Customer Support Chatbot

A beautiful chatbot built using DialoGPT-medium and the Victorano/customer-support-1k dataset. The chatbot features a clean and modern Gradio interface with conversation history support.

## Features

- Powered by DialoGPT-medium model
- Clean and modern Gradio interface
- Conversation history within the same session
- Copy button for messages
- Bot avatar using DiceBear API
- Responsive design

## Setup

1. Install the required dependencies:
```bash
pip install -r requirements.txt
```

2. Run the application:
```bash
python app.py
```

## Deployment on Hugging Face Spaces

1. Create a new Space on Hugging Face
2. Choose "Gradio" as the SDK
3. Upload these files to your Space:
   - app.py
   - requirements.txt
   - README.md

The Space will automatically build and deploy your chatbot.

## Usage

1. Type your message in the text input box
2. Press Enter or click the Send button
3. The chatbot will generate a response based on your input
4. The conversation history will be maintained in the chat window
5. You can copy any message using the copy button that appears on hover

## Model Details

- Model: microsoft/DialoGPT-medium
- Dataset: Victorano/customer-support-1k
- Generation Parameters:
  - max_length: 1000
  - temperature: 0.7
  - top_k: 50
  - top_p: 0.9