Spaces:
Running on Zero
Running on Zero
Switch Space SDK to python for direct FastAPI serving
Browse files
app.py
CHANGED
|
@@ -235,6 +235,5 @@ with gr.Blocks(title="Respite API") as demo:
|
|
| 235 |
demo.queue(max_size=4, default_concurrency_limit=1)
|
| 236 |
app = gr.mount_gradio_app(api, demo, path="/")
|
| 237 |
|
| 238 |
-
# Spaces
|
| 239 |
-
|
| 240 |
-
demo.launch()
|
|
|
|
| 235 |
demo.queue(max_size=4, default_concurrency_limit=1)
|
| 236 |
app = gr.mount_gradio_app(api, demo, path="/")
|
| 237 |
|
| 238 |
+
# Spaces (sdk: python) serves the ASGI `app` variable directly.
|
| 239 |
+
# For local development: uvicorn app:app --host 0.0.0.0 --port 7860
|
|
|