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