DIV-45 commited on
Commit
fce4455
·
verified ·
1 Parent(s): 7249fdd

fix: restore stable custom-shell launcher

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -6,6 +6,7 @@ from pathlib import Path
6
  from tempfile import NamedTemporaryFile
7
 
8
  import gradio as gr
 
9
  from fastapi import FastAPI, File, UploadFile
10
  from fastapi.responses import HTMLResponse
11
  from pydantic import BaseModel
@@ -128,3 +129,7 @@ async def ocr(front: UploadFile | None = File(default=None), back: UploadFile |
128
 
129
 
130
  app = gr.mount_gradio_app(app, build_gradio_engine(), path="/engine")
 
 
 
 
 
6
  from tempfile import NamedTemporaryFile
7
 
8
  import gradio as gr
9
+ import uvicorn
10
  from fastapi import FastAPI, File, UploadFile
11
  from fastapi.responses import HTMLResponse
12
  from pydantic import BaseModel
 
129
 
130
 
131
  app = gr.mount_gradio_app(app, build_gradio_engine(), path="/engine")
132
+
133
+
134
+ if __name__ == "__main__":
135
+ uvicorn.run(app, host="0.0.0.0", port=7860)