broadfield commited on
Commit
39cf3e0
·
verified ·
1 Parent(s): a790b06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -214,10 +214,10 @@ with gr.Blocks() as ux:
214
  gr.HTML("""<center><div style='font-size:xx-large;font-weight:900;'>Chatbo</div>""")
215
  chatbot=gr.Chatbot(type='messages',show_label=False, show_share_button=False, show_copy_button=True, layout="panel")
216
  #prompt=gr.MultimodalTextbox(label="Prompt",file_count="multiple", file_types=["image"])
217
- chat_ux=gr.ChatInterface(fn=agent,chatbot=chatbot)
218
  mod_c=gr.Dropdown(choices=[n['name'] for n in clients],value='Qwen/Qwen2.5-Coder-32B-Instruct',type='index')
219
- chat_ux.additional_inputs=[mod_c]
220
- chat_ux.load()
 
221
  with gr.Row():
222
  submit_b = gr.Button()
223
  stop_b = gr.Button("Stop")
 
214
  gr.HTML("""<center><div style='font-size:xx-large;font-weight:900;'>Chatbo</div>""")
215
  chatbot=gr.Chatbot(type='messages',show_label=False, show_share_button=False, show_copy_button=True, layout="panel")
216
  #prompt=gr.MultimodalTextbox(label="Prompt",file_count="multiple", file_types=["image"])
 
217
  mod_c=gr.Dropdown(choices=[n['name'] for n in clients],value='Qwen/Qwen2.5-Coder-32B-Instruct',type='index')
218
+ chat_ux=gr.ChatInterface(fn=agent,chatbot=chatbot,additional_inputs=[mod_c]).load()
219
+ #chat_ux.additional_inputs=[mod_c]
220
+ #chat_ux.load()
221
  with gr.Row():
222
  submit_b = gr.Button()
223
  stop_b = gr.Button("Stop")