hadadrjt commited on
Commit
1d7bea0
·
1 Parent(s): 68ce31f

ai: Split user input column.

Browse files
Files changed (1) hide show
  1. jarvis.py +2 -1
jarvis.py CHANGED
@@ -142,7 +142,8 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
142
  selected_model = gr.State(MODEL_CHOICES[0])
143
  chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"])
144
  model_dropdown = gr.Dropdown(show_label=False, choices=MODEL_CHOICES, value=MODEL_CHOICES[0])
145
- msg = gr.MultimodalTextbox(show_label=False, placeholder=RESPONSES["RESPONSE_5"], scale=0, interactive=True, file_count="single", file_types=ALLOWED_EXTENSIONS)
 
146
 
147
  model_dropdown.change(fn=change_model, inputs=[model_dropdown], outputs=[user_history, selected_model])
148
  msg.submit(fn=respond, inputs=[msg, user_history, selected_model], outputs=[chatbot, msg])
 
142
  selected_model = gr.State(MODEL_CHOICES[0])
143
  chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"])
144
  model_dropdown = gr.Dropdown(show_label=False, choices=MODEL_CHOICES, value=MODEL_CHOICES[0])
145
+ with gr.Row():
146
+ msg = gr.MultimodalTextbox(show_label=False, placeholder=RESPONSES["RESPONSE_5"], interactive=True, file_count="single", file_types=ALLOWED_EXTENSIONS)
147
 
148
  model_dropdown.change(fn=change_model, inputs=[model_dropdown], outputs=[user_history, selected_model])
149
  msg.submit(fn=respond, inputs=[msg, user_history, selected_model], outputs=[chatbot, msg])