Spaces:
Runtime error
A newer version of the Gradio SDK is available:
5.24.0
Installation Instructions for Omdurman National Bank Chatbot
This document provides instructions for installing and running the improved Omdurman National Bank chatbot.
Prerequisites
- Python 3.6 or higher
- pip (Python package installer)
Installation Steps
Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install Gradio with minimal dependencies:
pip install gradio --no-deps
Install required dependencies:
pip install gradio-client
For full functionality (if disk space allows):
pip install numpy pandas
Running the Chatbot
Basic Version
To run the basic version of the chatbot:
python3 final_chatbot.py
This will start the chatbot with core functionality. The chatbot will automatically detect if the customer service enhancements module is available and adapt accordingly.
Testing Locally
Once the chatbot is running, you can access it at:
The chatbot will also generate a public link that you can use to access it from any device.
Troubleshooting
Disk Space Issues
If you encounter disk space issues during installation, you can try:
Using the
--no-deps
flag with pip to avoid installing unnecessary dependencies:pip install gradio --no-deps
Installing only the essential dependencies:
pip install gradio-client
Using a smaller version of the chatbot by removing the customer service enhancements:
# Run without importing customer_service_enhancements.py
Missing Modules
If you encounter "ModuleNotFoundError" messages:
Install the specific missing module:
pip install [module_name]
If the error is related to gradio-client:
pip install gradio-client
File Structure
final_chatbot.py
: The main chatbot implementation with all featurescustomer_service_enhancements.py
: Additional customer service features (optional)original_chatbot.py
: The original chatbot implementation for referenceREADME.md
: Overview of the chatbot features and implementationINSTALLATION.md
: This installation guide
Contact
For any issues or questions, please contact the Omdurman National Bank IT support team.