Urdu Bot is an Urdu-language chatbot that utilizes the Llama3 model through Ollama, featuring speech-to-text conversation capabilities. This bot serves as an anxiety therapist, providing support and assistance with real-time anxiety level monitoring.
- Text Input
- Speech Input
- Real Time Anxiety Meter
- Text To Speech
├── README.md
├── app.py
├── audio_files
│ ├── 06-14-2024-19-22-10.wav
│ ├── 06-14-2024-19-22-19.wav
│ └── ...
├── config.py
├── database.py
├── instance
│ └── <your database instance>
├── model
│ └── <xlm-roberta-urdu>
├── requirements.txt
├── rough.ipynb
├── static
│ ├── css
│ │ └── styles.css
│ └── js
│ └── app.js
├── templates
│ └── chat.html
└── utils
├── __init__.py
├── preprocessing.py
└── stop_words.py
Tested on Python 3.10.
conda create -n <env_name> python==3.10
conda activate <env_name>
Install Ollama by running the following command:
curl -fsSL https://ollama.com/install.sh | sh
Start Ollama and download the Llama3 model:
ollama serve & ollama pull llama3
Ollama will run in the background at http://127.0.0.1:11434/
.
Install the required Python packages:
pip install -r requirements.txt
Start the flask application:
flask run
or
python app.py
You're now ready to use Urdu Bot! 🎉