Addyk24 commited on
Commit
ef1950c
·
1 Parent(s): d33e592

fix: - server/app.py main() function not callable (missing if __name__ == '__main__')

Browse files
Files changed (1) hide show
  1. server/app.py +4 -1
server/app.py CHANGED
@@ -447,5 +447,8 @@ async def state() -> dict[str, Any]:
447
  "info": {}
448
  }
449
 
 
 
 
450
  if __name__ == "__main__":
451
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
447
  "info": {}
448
  }
449
 
450
+ def main() -> None:
451
+ uvicorn.run(app, host="0.0.0.0", port=7860)
452
+
453
  if __name__ == "__main__":
454
+ main()