Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -94,12 +94,6 @@ chat_input = gr.MultimodalTextbox(
|
|
94 |
show_label=False,
|
95 |
|
96 |
)
|
97 |
-
examples = gr.Examples(
|
98 |
-
examples=[{"text": "What is on the desk?", "files": ["./laptop.jpg"]},
|
99 |
-
{"text": "Where it is?", "files": ["./hotel.jpg"]},
|
100 |
-
{"text": "Can yo describe this image?", "files": ["./spacecat.png"]}],
|
101 |
-
inputs=chat_input,
|
102 |
-
)
|
103 |
|
104 |
|
105 |
with gr.Blocks(css=CSS) as demo:
|
@@ -109,6 +103,9 @@ with gr.Blocks(css=CSS) as demo:
|
|
109 |
gr.ChatInterface(
|
110 |
fn=stream_chat,
|
111 |
multimodal=True,
|
|
|
|
|
|
|
112 |
examples=examples,
|
113 |
textbox=chat_input,
|
114 |
chatbot=chatbot,
|
|
|
94 |
show_label=False,
|
95 |
|
96 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
|
99 |
with gr.Blocks(css=CSS) as demo:
|
|
|
103 |
gr.ChatInterface(
|
104 |
fn=stream_chat,
|
105 |
multimodal=True,
|
106 |
+
examples=[[{"text": "What is on the desk?", "files": ["./laptop.jpg"]}],
|
107 |
+
[{"text": "Where it is?", "files": ["./hotel.jpg"]}],
|
108 |
+
[{"text": "Can yo describe this image?", "files": ["./spacecat.png"]}]],
|
109 |
examples=examples,
|
110 |
textbox=chat_input,
|
111 |
chatbot=chatbot,
|