Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
@@ -1,61 +1,8 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
- Quick action buttons for common banking tasks
|
10 |
-
- Typing indicators for a more natural conversation experience
|
11 |
-
- Enhanced UI with better styling and layout
|
12 |
-
- Welcome message with bank logo
|
13 |
-
|
14 |
-
### External Actions
|
15 |
-
- Clickable links for online banking actions
|
16 |
-
- Phone number links for direct calling
|
17 |
-
- Email links for customer support
|
18 |
-
- Branch location finder
|
19 |
-
- Live agent connection option
|
20 |
-
|
21 |
-
### Customer Service Expertise
|
22 |
-
- Natural language responses with greeting and follow-up phrases
|
23 |
-
- Personalized customer service tone
|
24 |
-
- Interaction logging for quality improvement
|
25 |
-
- Menu of available services
|
26 |
-
|
27 |
-
## Implementation Details
|
28 |
-
|
29 |
-
The chatbot has been implemented with disk space constraints in mind:
|
30 |
-
- Replaced the heavy transformers-based language detection with a lightweight regex-based approach
|
31 |
-
- Used HTML/CSS/JavaScript for enhanced UI features instead of additional dependencies
|
32 |
-
- Implemented all functionality within a single file for easy deployment
|
33 |
-
|
34 |
-
## How to Run
|
35 |
-
|
36 |
-
```bash
|
37 |
-
cd /home/ubuntu/banking_chatbot
|
38 |
-
python3 improved_chatbot.py
|
39 |
-
```
|
40 |
-
|
41 |
-
The chatbot will be available at http://localhost:7860 and will also generate a public link for external access.
|
42 |
-
|
43 |
-
## Comparison with Original Version
|
44 |
-
|
45 |
-
The improved version offers several advantages over the original:
|
46 |
-
1. More user-friendly interface with quick action buttons
|
47 |
-
2. External action links for banking services
|
48 |
-
3. More natural, human-like responses
|
49 |
-
4. Typing indicators for a more engaging experience
|
50 |
-
5. Live agent connection option
|
51 |
-
6. Interaction logging for service improvement
|
52 |
-
7. Reduced dependencies for better performance
|
53 |
-
|
54 |
-
## Customization
|
55 |
-
|
56 |
-
You can customize the chatbot by modifying:
|
57 |
-
- `ONB_GUIDELINES_AR` and `ONB_GUIDELINES_EN` for response content
|
58 |
-
- `QUICK_ACTIONS_AR` and `QUICK_ACTIONS_EN` for quick action buttons
|
59 |
-
- `CUSTOMER_SERVICE_PHRASES_AR` and `CUSTOMER_SERVICE_PHRASES_EN` for tone and style
|
60 |
-
- `custom_css` for visual styling
|
61 |
-
- `custom_js` for interactive behavior
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
sdk: gradio
|
4 |
+
emoji: 💻
|
5 |
+
colorFrom: blue
|
6 |
+
colorTo: indigo
|
7 |
+
---
|
8 |
+
gradio>=3.50.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|