hadadrjt commited on
Commit
03febd9
·
1 Parent(s): 8d86b30

Revert "ai: Disable file upload."

Browse files

* This reverts commit fe94329f2866d92b6330881cd884648f383c47b6.

Conflicts:
src/main/gradio.py

Files changed (1) hide show
  1. src/main/gradio.py +1 -1
src/main/gradio.py CHANGED
@@ -155,7 +155,7 @@ def launch_ui():
155
  # Chatbot UI
156
  with gr.Column(): chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"], examples=JARVIS_INIT, allow_tags=["think"])
157
  # User's input
158
- msg = gr.MultimodalTextbox(show_label=False, placeholder=RESPONSES["RESPONSE_5"], interactive=True, file_count=None, file_types=None, sources=[])
159
  # Sidebar to select AI models and on/off deep search
160
  with gr.Sidebar(open=False):
161
  deep_search = gr.Checkbox(label=AI_TYPES["AI_TYPE_8"], value=False, info=AI_TYPES["AI_TYPE_9"], visible=True)
 
155
  # Chatbot UI
156
  with gr.Column(): chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"], examples=JARVIS_INIT, allow_tags=["think"])
157
  # User's input
158
+ msg = gr.MultimodalTextbox(show_label=False, placeholder=RESPONSES["RESPONSE_5"], interactive=True, file_count="single", file_types=ALLOWED_EXTENSIONS)
159
  # Sidebar to select AI models and on/off deep search
160
  with gr.Sidebar(open=False):
161
  deep_search = gr.Checkbox(label=AI_TYPES["AI_TYPE_8"], value=False, info=AI_TYPES["AI_TYPE_9"], visible=True)