clone3 commited on
Commit
66dfcdf
·
verified ·
1 Parent(s): cdfb88f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -75,6 +75,10 @@ def start_server(port: int = 7860):
75
  "app:app",
76
  host="0.0.0.0",
77
  port=port,
 
 
 
 
78
  )
79
 
80
  if __name__ == "__main__":
 
75
  "app:app",
76
  host="0.0.0.0",
77
  port=port,
78
+ workers=1,
79
+ factory=False,
80
+ # Use UvicornWorker to handle WSGI app
81
+ worker_class="uvicorn.workers.UvicornWorker"
82
  )
83
 
84
  if __name__ == "__main__":