gemini_api : https://visionapi.streamlit.app/
A repository containing a simple gemini api streamlit application. chat_api.py is a chatbot with history and a simple interface vision_api.py isusing "gemini-pro-vision' to learn about the image you upload
To get a Gemini API key got to this link:
https://aistudio.google.com/app/apikey
- first install the requirements
pip install -r requirements.txt- then run the streamlit app
streamlit run chat_api.py --server.enableXsrfProtection falseor for the vision model :
streamlit run vision_api.py --server.enableXsrfProtection falsechange your API key f dak .env file
Note : the same API key is used in both vision_api and chat_api