hadadrjt commited on
Commit
7660ec6
·
1 Parent(s): 0e06f59

ai: Limit file uploads to text.

Browse files

"Free don't expect fantastic"

Sad! But that's the world works.

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="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)
 
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=[".txt"])
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)