Spaces:
Running
Running
fix: blank page error and gradio import error
Browse files
main.py
CHANGED
|
@@ -49,5 +49,7 @@ app = gr.mount_gradio_app(api, demo, path="/")
|
|
| 49 |
|
| 50 |
if __name__ == "__main__":
|
| 51 |
import uvicorn
|
| 52 |
-
#
|
| 53 |
-
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
if __name__ == "__main__":
|
| 51 |
import uvicorn
|
| 52 |
+
# Note: reload=True is disabled intentionally.
|
| 53 |
+
# It causes subprocess workers that cannot find the app modules,
|
| 54 |
+
# resulting in a blank Gradio page and hanging model loads.
|
| 55 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|