Leonardo commited on
Commit
3ba6a37
·
verified ·
1 Parent(s): 130af38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -324,6 +324,7 @@ def process_message_content(content_lower: str) -> Dict[str, bool]:
324
  "is_error": "error" in content_lower,
325
  }
326
 
 
327
  def stream_to_gradio(
328
  agent,
329
  task: str,
@@ -735,7 +736,7 @@ class GradioUI:
735
  self.components.file_uploader = gr.File(
736
  label="Upload a file",
737
  file_types=["pdf", "docx", "txt", "md", "json"],
738
- type="filepath",
739
  )
740
  self.components.upload_status = gr.Textbox(
741
  label="Upload status", interactive=False, visible=False
@@ -876,7 +877,7 @@ class GradioUI:
876
  # Launch with enhanced queue settings
877
  demo.queue(
878
  max_size=self.max_queue_size,
879
- concurrency_count=3, # Allow multiple concurrent requests
880
  status_update_rate=10, # Update status more frequently
881
  ).launch(
882
  share=share,
 
324
  "is_error": "error" in content_lower,
325
  }
326
 
327
+
328
  def stream_to_gradio(
329
  agent,
330
  task: str,
 
736
  self.components.file_uploader = gr.File(
737
  label="Upload a file",
738
  file_types=["pdf", "docx", "txt", "md", "json"],
739
+ type="file",
740
  )
741
  self.components.upload_status = gr.Textbox(
742
  label="Upload status", interactive=False, visible=False
 
877
  # Launch with enhanced queue settings
878
  demo.queue(
879
  max_size=self.max_queue_size,
880
+ default_concurrency_limit=3, # Allow multiple concurrent requests
881
  status_update_rate=10, # Update status more frequently
882
  ).launch(
883
  share=share,