Spaces:
Running
Running
Nathan Chang commited on
Commit ·
0e62773
1
Parent(s): 2666f2e
move startup call to main to prep for pytests
Browse files
app.py
CHANGED
|
@@ -107,9 +107,10 @@ with gr.Blocks(
|
|
| 107 |
"**MCP-compatible!** Simply add `n8cha/prompt-roulette` to your list in https://hf.co/settings/mcp to expose it as a convenient tool for your AI conversation partner."
|
| 108 |
)
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
| 114 |
|
| 115 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 107 |
"**MCP-compatible!** Simply add `n8cha/prompt-roulette` to your list in https://hf.co/settings/mcp to expose it as a convenient tool for your AI conversation partner."
|
| 108 |
)
|
| 109 |
|
| 110 |
+
if __name__ == "__main__":
|
| 111 |
+
demo.queue(
|
| 112 |
+
max_size=5, # Maximum number of requests in queue
|
| 113 |
+
default_concurrency_limit=1 # Maximum concurrent API calls
|
| 114 |
+
)
|
| 115 |
|
| 116 |
+
demo.launch(mcp_server=True)
|