Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -16,4 +16,8 @@ with gr.Blocks() as demo:
|
|
| 16 |
btn.click(fn=fake_gpu, inputs=[], outputs=[])
|
| 17 |
|
| 18 |
# Mount Gradio on top of our FastAPI app to prevent SvelteKit from intercepting API routes
|
| 19 |
-
app = gr.mount_gradio_app(fastapi_app, demo, path="/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
btn.click(fn=fake_gpu, inputs=[], outputs=[])
|
| 17 |
|
| 18 |
# Mount Gradio on top of our FastAPI app to prevent SvelteKit from intercepting API routes
|
| 19 |
+
app = gr.mount_gradio_app(fastapi_app, demo, path="/")
|
| 20 |
+
|
| 21 |
+
if __name__ == "__main__":
|
| 22 |
+
import uvicorn
|
| 23 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|