Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
|
@@ -243,7 +243,7 @@ Prompting multiple AI agents to play games in a language-driven environment.
|
|
| 243 |
def step_game(all_comps: dict):
|
| 244 |
yield {btn_step: gr.update(value="Running...", interactive=False),
|
| 245 |
btn_restart: gr.update(interactive=False)}
|
| 246 |
-
sleep(
|
| 247 |
|
| 248 |
cur_state = all_comps[state]
|
| 249 |
|
|
@@ -374,5 +374,5 @@ Prompting multiple AI agents to play games in a language-driven environment.
|
|
| 374 |
|
| 375 |
example_selector.change(update_components_from_example, set(all_components + [state]), all_components + [state])
|
| 376 |
|
| 377 |
-
demo.queue(concurrency_count=
|
| 378 |
demo.launch(debug=DEBUG)
|
|
|
|
| 243 |
def step_game(all_comps: dict):
|
| 244 |
yield {btn_step: gr.update(value="Running...", interactive=False),
|
| 245 |
btn_restart: gr.update(interactive=False)}
|
| 246 |
+
sleep(2) # control the rate of requests
|
| 247 |
|
| 248 |
cur_state = all_comps[state]
|
| 249 |
|
|
|
|
| 374 |
|
| 375 |
example_selector.change(update_components_from_example, set(all_components + [state]), all_components + [state])
|
| 376 |
|
| 377 |
+
demo.queue(concurrency_count=32) # To improve concurrency
|
| 378 |
demo.launch(debug=DEBUG)
|