gemini_chat-bot.mp4
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.
- Create a new space
- Add secret variable
In this code the variable name isGOOGLE_GEMINI_KEY
. You can name whatever you want to name. If you change the name, you need to update the name inapp.py
. - Push the code to your HuggingFace space
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.
pip install streamlit google-generativeai
Then run the following command. You will see 2 urls for the streamlit application.
streamlit run app.py