vilarin commited on
Commit
e7455bb
1 Parent(s): cf7a112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -92,11 +92,16 @@ chat_input = gr.MultimodalTextbox(
92
  file_types=["image"],
93
  placeholder="Enter message or upload file...",
94
  show_label=False,
 
 
 
95
  examples=[{"text": "What is on the desk?", "files": ["./laptop.jpg"]},
96
  {"text": "Where it is?", "files": ["./hotel.jpg"]},
97
  {"text": "Can yo describe this image?", "files": ["./spacecat.png"]}],
 
98
  )
99
 
 
100
  with gr.Blocks(css=CSS) as demo:
101
  gr.HTML(TITLE)
102
  gr.HTML(DESCRIPTION)
@@ -104,6 +109,7 @@ with gr.Blocks(css=CSS) as demo:
104
  gr.ChatInterface(
105
  fn=stream_chat,
106
  multimodal=True,
 
107
  textbox=chat_input,
108
  chatbot=chatbot,
109
  fill_height=True,
 
92
  file_types=["image"],
93
  placeholder="Enter message or upload file...",
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:
106
  gr.HTML(TITLE)
107
  gr.HTML(DESCRIPTION)
 
109
  gr.ChatInterface(
110
  fn=stream_chat,
111
  multimodal=True,
112
+ examples=examples,
113
  textbox=chat_input,
114
  chatbot=chatbot,
115
  fill_height=True,