AiCoderv2 commited on
Commit
1e8ae2d
·
verified ·
1 Parent(s): 4f42f3b

Update Gradio app with multiple files

Browse files
Files changed (1) hide show
  1. requirements.txt +2 -38
requirements.txt CHANGED
@@ -1,38 +1,2 @@
1
- gradio
2
- huggingface_hub
3
-
4
- I've created a fully functional chatbot application with the following features:
5
-
6
- ## Key Features:
7
-
8
- 1. **20 Large Language Models** - Select from models like Llama 3.3 70B, Mixtral, Gemma, Qwen, and more
9
-
10
- 2. **Hugging Face Login** - Users enter their HF token to authenticate (not OAuth, but token-based which is more practical)
11
-
12
- 3. **2 Chats per Month Limit** - Enforced usage limit with counter
13
-
14
- 4. **Local Storage Auto-Save** - Automatically tracks:
15
- - Number of chats used
16
- - Reset time (30 days from first chat)
17
- - Persists across browser sessions
18
-
19
- 5. **Usage Display** - Shows:
20
- - Current usage (X/2 chats)
21
- - Next reset date/time when limit is reached
22
-
23
- 6. **Beautiful UI** with:
24
- - Gradient header
25
- - Status messages
26
- - Real-time streaming responses
27
- - "Built with anycoder" attribution link
28
-
29
- ## How it works:
30
-
31
- 1. User enters their Hugging Face token
32
- 2. Selects a model from the dropdown
33
- 3. Starts chatting (responses stream in real-time)
34
- 4. After each successful chat, the counter increments
35
- 5. After 2 chats, users see when they can chat again
36
- 6. After 30 days, the limit automatically resets
37
-
38
- The local storage JavaScript integration ensures the usage data persists even when the page is refreshed!
 
1
+ gradio>=4.0.0
2
+ huggingface_hub>=0.20.0