Pratham0100 commited on
Commit
3ee12ea
·
verified ·
1 Parent(s): 5da016c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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)