Spaces:
Running
on
Zero
Running
on
Zero
Run uvicorn with default PORT
Browse files- __pycache__/app.cpython-313.pyc +0 -0
- app.py +6 -0
__pycache__/app.cpython-313.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-313.pyc and b/__pycache__/app.cpython-313.pyc differ
|
|
|
app.py
CHANGED
|
@@ -195,3 +195,9 @@ with gr.Blocks(title="Router Model ZeroGPU Backend") as demo:
|
|
| 195 |
|
| 196 |
demo.queue()
|
| 197 |
app = gr.mount_gradio_app(fastapi_app, demo, path="/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
|
| 196 |
demo.queue()
|
| 197 |
app = gr.mount_gradio_app(fastapi_app, demo, path="/")
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
if __name__ == "__main__": # pragma: no cover
|
| 201 |
+
import uvicorn
|
| 202 |
+
|
| 203 |
+
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("PORT", 7860)))
|