Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,3 +51,6 @@ app = fastapi.FastAPI()
|
|
| 51 |
app = gr.mount_gradio_app(app, text_api, path="/run/predict_text")
|
| 52 |
app = gr.mount_gradio_app(app, image_api, path="/run/predict_image")
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
app = gr.mount_gradio_app(app, text_api, path="/run/predict_text")
|
| 52 |
app = gr.mount_gradio_app(app, image_api, path="/run/predict_image")
|
| 53 |
|
| 54 |
+
if __name__ == "__main__":
|
| 55 |
+
import uvicorn
|
| 56 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|