This repository provides a comprehensive workbook for using the Google Gemini API integrated with Streamlit. The workbook includes practical demos showcasing function calling, code execution, and other advanced features of the Gemini API, wrapped in interactive Streamlit applications.
- Function Calling: Demonstrates how to use the Gemini API for function calling, including multi-turn interactions.
- Code Execution: Showcases the ability to run code with the help of the Gemini API, such as calculations and simple algorithms.
- Document Processing: Includes demos for uploading and processing documents using the API.
- Audio and Image Analysis: Tutorials for handling audio and image files with the Gemini API.
- Streamlit Integration: Each demo is built using Streamlit, providing an interactive and easy-to-use interface for experimenting with the API.
- functionCallingQ.py: Demonstrates function calling with the Gemini API.
- codeQ.py: Provides examples of code execution within the model.
- docQ.py: Shows how to upload and process documents (e.g., PDFs).
- audioQ.py: Integrates audio file uploads and handles processing with the API.
- visionQ.py: Handles image and video analysis using the Gemini API.
-
Clone the repository:
git clone [email protected]:sajithamma/gemini-streamlit-workbook.git pip install -r requirements.txt
-
Run the Streamlit app:
vi .env #API_KEY=your_api_key_here streamlit run filename.py