Spaces:
Runtime error
Runtime error
LPX55
commited on
Commit
·
e22d5ca
1
Parent(s):
63ebafe
wat
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ print("Gradio version:", gradio.__version__)
|
|
16 |
|
17 |
theme = gr.Theme.from_hub("LPX55/modal_ai")
|
18 |
|
19 |
-
with gr.Blocks(theme=theme, js=js_func, css=css_func
|
20 |
show_space_tab = gr.State(False)
|
21 |
# Iframe lazy load pattern
|
22 |
heavy_iframe_src = gr.State("")
|
@@ -178,4 +178,4 @@ print(client.predict("Alex", 5, False, api_name="/greet"))
|
|
178 |
|
179 |
shared_state.change(pretty_json, shared_state, shared_state_box)
|
180 |
|
181 |
-
demo.launch(mcp_server=True)
|
|
|
16 |
|
17 |
theme = gr.Theme.from_hub("LPX55/modal_ai")
|
18 |
|
19 |
+
with gr.Blocks(theme=theme, js=js_func, css=css_func) as demo:
|
20 |
show_space_tab = gr.State(False)
|
21 |
# Iframe lazy load pattern
|
22 |
heavy_iframe_src = gr.State("")
|
|
|
178 |
|
179 |
shared_state.change(pretty_json, shared_state, shared_state_box)
|
180 |
|
181 |
+
demo.queue(default_concurrency_limit=2, max_size=10).launch(mcp_server=True)
|