sskorol commited on
Commit
aff4542
·
verified ·
1 Parent(s): 90d4a43

Gradio launch improvements

Browse files

Limited gradio concurrency.

Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -114,4 +114,12 @@ agent = CodeAgent(
114
  )
115
 
116
 
117
- GradioUI(agent).launch()
 
 
 
 
 
 
 
 
 
114
  )
115
 
116
 
117
+ if __name__ == "__main__":
118
+ ui = GradioUI(agent)
119
+ ui.launch(
120
+ server_port=7860,
121
+ share=True,
122
+ enable_queue=True,
123
+ max_threads=1,
124
+ concurrency_count=1
125
+ )