Spaces:
Runtime error
Runtime error
Update app.py
#1
by
maxex59185ckuer
- opened
app.py
CHANGED
|
@@ -100,14 +100,11 @@ def bot_streaming(message, history, api_key, model, system_prompt, temperature,
|
|
| 100 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 101 |
gr.Markdown("""
|
| 102 |
# π€ Google Gemini API Multimodal Chat
|
| 103 |
-
|
| 104 |
Chat with Google Gemini AI models. Supports text and image interactions.
|
| 105 |
-
|
| 106 |
## π Quick Start:
|
| 107 |
1. Enter your Google AI API key
|
| 108 |
2. Choose a model
|
| 109 |
3. Start chatting!
|
| 110 |
-
|
| 111 |
Enjoy your AI-powered conversation!
|
| 112 |
""")
|
| 113 |
|
|
@@ -153,7 +150,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 153 |
],
|
| 154 |
title="π¬ Chat with Google Gemini AI",
|
| 155 |
description="Upload images or type your message to start the conversation.",
|
| 156 |
-
retry_btn
|
| 157 |
undo_btn="β©οΈ Undo",
|
| 158 |
clear_btn="ποΈ Clear",
|
| 159 |
multimodal=True,
|
|
@@ -168,4 +165,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 168 |
- Upload images for multimodal interactions
|
| 169 |
""")
|
| 170 |
|
| 171 |
-
demo.launch(debug=True, share=True)
|
|
|
|
| 100 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 101 |
gr.Markdown("""
|
| 102 |
# π€ Google Gemini API Multimodal Chat
|
|
|
|
| 103 |
Chat with Google Gemini AI models. Supports text and image interactions.
|
|
|
|
| 104 |
## π Quick Start:
|
| 105 |
1. Enter your Google AI API key
|
| 106 |
2. Choose a model
|
| 107 |
3. Start chatting!
|
|
|
|
| 108 |
Enjoy your AI-powered conversation!
|
| 109 |
""")
|
| 110 |
|
|
|
|
| 150 |
],
|
| 151 |
title="π¬ Chat with Google Gemini AI",
|
| 152 |
description="Upload images or type your message to start the conversation.",
|
| 153 |
+
# Removed the retry_btn argument
|
| 154 |
undo_btn="β©οΈ Undo",
|
| 155 |
clear_btn="ποΈ Clear",
|
| 156 |
multimodal=True,
|
|
|
|
| 165 |
- Upload images for multimodal interactions
|
| 166 |
""")
|
| 167 |
|
| 168 |
+
demo.launch(debug=True, share=True)
|