Bard.Web.App.mp4
A Flask web application that provides a user interface to interact with a chatbot.
Installation • Usage • License
- Clone the repository:
git clone https://github.com/your-username/your-repository.git cd your-repository
- Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate
- Install the dependencies:
pip install -r requirements.txt
- Obtain a Bard Token:
- Sign up on the Bard website to get an API token.
- Replace the
token
variable inapp.py
with your token.
- Download Whisper models:
- Download the
tiny
andbase
models from the Whisper repository. - Place the models in the same directory as
app.py
.
- Download the
- Run the application:
python app.py
- Open your web browser and visit
http://localhost:5000
to access the chatbot interface.
- Enter text input: Type your message in the input field and press Enter or click the "Send" button. The chatbot will respond accordingly.
- Speech input: Click the "Listen" button and speak your prompt to the chatbot. It will transcribe your speech, send it to the chatbot, and provide a spoken response.
- Speech output: Enter your prompt in the input field and click the "Speak" button. The chatbot's response will be spoken aloud.
This project is licensed under the MIT License.