Thanks to visit codestin.com
Credit goes to github.com

Skip to content

omvriio/gemini_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Getting a Gemini API Key

To get a Gemini API key got to this link: https://aistudio.google.com/app/apikey Image Description

to run the code locally

  • first install the requirements
pip install -r requirements.txt
  • then run the streamlit app
streamlit run chat_api.py --server.enableXsrfProtection false

or for the vision model :

streamlit run vision_api.py --server.enableXsrfProtection false

Setting up the Gemini API Key

change your API key f dak .env file

Note : the same API key is used in both vision_api and chat_api

About

A repository containing a simple gemini api application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages