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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -87,7 +87,15 @@ def stream_chat(message, history: list, system: str, temperature: float, max_new
87
 
88
 
89
  chatbot = gr.Chatbot(height=450)
90
- chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeholder="Enter message or upload file...", show_label=False)
 
 
 
 
 
 
 
 
91
 
92
  with gr.Blocks(css=CSS) as demo:
93
  gr.HTML(TITLE)
@@ -95,9 +103,6 @@ with gr.Blocks(css=CSS) as demo:
95
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
96
  gr.ChatInterface(
97
  fn=stream_chat,
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
  multimodal=True,
102
  textbox=chat_input,
103
  chatbot=chatbot,
 
87
 
88
 
89
  chatbot = gr.Chatbot(height=450)
90
+ chat_input = gr.MultimodalTextbox(
91
+ interactive=True,
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)
 
103
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
104
  gr.ChatInterface(
105
  fn=stream_chat,
 
 
 
106
  multimodal=True,
107
  textbox=chat_input,
108
  chatbot=chatbot,