kshitijthakkar commited on
Commit
02ca5d1
·
1 Parent(s): 040fd52

Configure queue for 4 concurrent users

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3952,6 +3952,9 @@ if __name__ == "__main__":
3952
  print(f"Data Source: {os.getenv('DATA_SOURCE', 'both')}")
3953
  print(f"JSON Path: {os.getenv('JSON_DATA_PATH', './sample_data')}")
3954
 
 
 
 
3955
  app.launch(
3956
  server_name="0.0.0.0",
3957
  server_port=7860,
 
3952
  print(f"Data Source: {os.getenv('DATA_SOURCE', 'both')}")
3953
  print(f"JSON Path: {os.getenv('JSON_DATA_PATH', './sample_data')}")
3954
 
3955
+ # Configure queue to handle up to 4 concurrent users
3956
+ app.queue(default_concurrency_limit=4, max_size=4)
3957
+
3958
  app.launch(
3959
  server_name="0.0.0.0",
3960
  server_port=7860,