https://github.com/alphasecio/gemini
A Streamlit app for exploring Google Gemini models.
https://github.com/alphasecio/gemini
gemini google llm python streamlit
Last synced: about 2 months ago
JSON representation
A Streamlit app for exploring Google Gemini models.
- Host: GitHub
- URL: https://github.com/alphasecio/gemini
- Owner: alphasecio
- License: mit
- Created: 2024-05-09T10:16:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T06:16:12.000Z (over 1 year ago)
- Last Synced: 2025-01-05T13:23:55.314Z (over 1 year ago)
- Topics: gemini, google, llm, python, streamlit
- Language: Python
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Gemini Chatbot
A Streamlit-based chatbot that uses Google Gemini to respond to both **textual queries** and **image uploads**. Ask questions, upload images, and get AI-generated responses powered by Google's multimodal large language models.

## 🔑 Setup
### Option 1 - Using Gemini Developer API
* Set the `GOOGLE_GENAI_USE_VERTEXAI` environment variable to `false`.
* Obtain a Google Gemini [API key](https://aistudio.google.com/apikey), and set the `GOOGLE_API_KEY` environment variable.
### Option 2 - Using Vertex AI
* Set the `GOOGLE_GENAI_USE_VERTEXAI` environment variable to `true`.
* Set the `GOOGLE_CLOUD_PROJECT` and `GOOGLE_CLOUD_LOCATION` environment variables respectively.
* Deploy the chatbot using Google Cloud Run in your project.
## 🚀 Usage
```bash
streamlit run streamlit_app.py
```