adiitya29 commited on
Commit
ddbc0b5
·
1 Parent(s): cf2c908

fix: blank page error and gradio import error

Browse files
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -49,5 +49,7 @@ app = gr.mount_gradio_app(api, demo, path="/")
49
 
50
  if __name__ == "__main__":
51
  import uvicorn
52
- # Run the unified app with uvicorn
53
- uvicorn.run("main:app", host="0.0.0.0", port=7860, reload=True)
 
 
 
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)