broadfield commited on
Commit
150e6b7
·
verified ·
1 Parent(s): 210ca42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -194,9 +194,10 @@ with gr.Blocks() as ux:
194
  gr.HTML("""<center><div style='font-size:xx-large;font-weight:900;'>Chatbo</div>""")
195
  chatbot=gr.Chatbot(type='messages',show_label=False, show_share_button=False, show_copy_button=True, layout="panel")
196
  prompt=gr.MultimodalTextbox(label="Prompt",file_count="multiple", file_types=["image"])
197
- chat_ux=gr.ChatInterface(chatbot=chatbot,textbox=prompt)
198
  mod_c=gr.Dropdown(choices=[n['name'] for n in clients],value='Qwen/Qwen2.5-Coder-32B-Instruct',type='index')
199
-
 
200
  with gr.Row():
201
  submit_b = gr.Button()
202
  stop_b = gr.Button("Stop")
 
194
  gr.HTML("""<center><div style='font-size:xx-large;font-weight:900;'>Chatbo</div>""")
195
  chatbot=gr.Chatbot(type='messages',show_label=False, show_share_button=False, show_copy_button=True, layout="panel")
196
  prompt=gr.MultimodalTextbox(label="Prompt",file_count="multiple", file_types=["image"])
197
+ chat_ux=gr.ChatInterface(fn=agent,chatbot=chatbot,textbox=prompt)
198
  mod_c=gr.Dropdown(choices=[n['name'] for n in clients],value='Qwen/Qwen2.5-Coder-32B-Instruct',type='index')
199
+ chat_ux.additional_inputs=[mod_c]
200
+ chat_ux.load()
201
  with gr.Row():
202
  submit_b = gr.Button()
203
  stop_b = gr.Button("Stop")