https://github.com/koji/geminipro-streamlit-chatbot
Chat bot with Gemini Pro and Streamlit
https://github.com/koji/geminipro-streamlit-chatbot
gemini-api huggingface python streamlit
Last synced: 2 months ago
JSON representation
Chat bot with Gemini Pro and Streamlit
- Host: GitHub
- URL: https://github.com/koji/geminipro-streamlit-chatbot
- Owner: koji
- Created: 2024-01-01T05:26:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-01T05:41:34.000Z (over 2 years ago)
- Last Synced: 2025-11-03T09:27:15.421Z (8 months ago)
- Topics: gemini-api, huggingface, python, streamlit
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Gemini Pro Chatbot with Streamlit
https://github.com/koji/GeminiPro-Streamlit-ChatBot/assets/474225/5a2c807c-51c0-41ba-99ee-31c6ad968a69
requirements
- google-generativeai
- streamlit (if you want to run the code on your local machine)
- google gemini api key (https://makersuite.google.com/app/apikey)
This repo's code is running the streamlit on HuggingFace space.
## how to setup HuggingFace space
1. Create a new space
2. Add secret variable
In this code the variable name is `GOOGLE_GEMINI_KEY`. You can name whatever you want to name. If you change the name, you need to update the name in `app.py`.
3. Push the code to your HuggingFace space
## how to run locally
If you want to run the code locally, you can do that. Before running, please make sure that you install `streamlit` and `google-generativeai` on your machine.
```zsh
pip install streamlit google-generativeai
```
Then run the following command. You will see 2 urls for the streamlit application.
```zsh
streamlit run app.py
```