vilarin commited on
Commit
cff68a5
1 Parent(s): d14f742

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
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=[{"text": "What is on the desk?", "files": ["./laptop.jpg"]},
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,