Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def bot_streaming(message, history):
|
|
| 42 |
try:
|
| 43 |
if image is None:
|
| 44 |
# Handle the case where image is None
|
| 45 |
-
raise gr.Error("You need to upload an image for
|
| 46 |
except NameError:
|
| 47 |
# Handle the case where 'image' is not defined at all
|
| 48 |
raise gr.Error("You need to upload an image for Vision to work. Close the error and try again with an Image.")
|
|
@@ -88,7 +88,7 @@ chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeh
|
|
| 88 |
with gr.Blocks(fill_height=True, ) as demo:
|
| 89 |
gr.ChatInterface(
|
| 90 |
fn=bot_streaming,
|
| 91 |
-
title="
|
| 92 |
examples=[{"text": "Describe the image in details?", "files": ["./robo.jpg"]},
|
| 93 |
{"text": "Count the number of apples.", "files": ["./setofmark6.png"]},
|
| 94 |
|
|
|
|
| 42 |
try:
|
| 43 |
if image is None:
|
| 44 |
# Handle the case where image is None
|
| 45 |
+
raise gr.Error("You need to upload an image for Vision to work. Close the error and try again with an Image.")
|
| 46 |
except NameError:
|
| 47 |
# Handle the case where 'image' is not defined at all
|
| 48 |
raise gr.Error("You need to upload an image for Vision to work. Close the error and try again with an Image.")
|
|
|
|
| 88 |
with gr.Blocks(fill_height=True, ) as demo:
|
| 89 |
gr.ChatInterface(
|
| 90 |
fn=bot_streaming,
|
| 91 |
+
title="Vision",
|
| 92 |
examples=[{"text": "Describe the image in details?", "files": ["./robo.jpg"]},
|
| 93 |
{"text": "Count the number of apples.", "files": ["./setofmark6.png"]},
|
| 94 |
|