mhamoody commited on
Commit
1ee26fc
·
verified ·
1 Parent(s): 3f601c5
Files changed (1) hide show
  1. README.md +40 -3
README.md CHANGED
@@ -1,12 +1,49 @@
1
  ---
2
- title: Gemini2
3
  emoji: 🏆
4
  colorFrom: purple
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 6.5.1
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Gemini 2.0 Multimodal Chatbot
3
  emoji: 🏆
4
  colorFrom: purple
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 6.5
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
+ # Gemini 2.0 Multimodal Chatbot
13
+
14
+ A Gradio-based multimodal chatbot powered by Google's Gemini 2.0 Flash API. Upload images and ask questions to analyze content with advanced AI capabilities.
15
+
16
+ ## Features
17
+
18
+ - **Multimodal Input**: Support for both text prompts and image uploads
19
+ - **Image Analysis**: Analyze figures, graphs, and diagrams
20
+ - **Customizable Generation**: Control temperature, token limits, sampling parameters
21
+ - **Streaming Responses**: Real-time response generation
22
+
23
+ ## Setup on Hugging Face Spaces
24
+
25
+ 1. Create a new Space on Hugging Face with Gradio SDK
26
+ 2. Add the following secret:
27
+ - `GEMINI_API_KEY`: Your Google Gemini API key from [Google AI Studio](https://aistudio.google.com/apikey)
28
+
29
+ 3. The app will automatically use this environment variable
30
+
31
+ ## Running Locally
32
+
33
+ ```bash
34
+ pip install -r requirements.txt
35
+ export GEMINI_API_KEY=your_api_key_here
36
+ python app.py
37
+ ```
38
+
39
+ ## Environment Variables
40
+
41
+ - `GEMINI_API_KEY`: Your Google Gemini API key (required)
42
+
43
+ ## How to Use
44
+
45
+ 1. Optionally enter your API key (if not set as environment variable)
46
+ 2. Enter your question or prompt
47
+ 3. Optionally upload an image
48
+ 4. Click "Submit" to get a response
49
+ 5. Adjust generation parameters in the "Customize" section for different outputs