sniki28 commited on
Commit
c2daff6
·
verified ·
1 Parent(s): 79d6cdb

Upload server/app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server/app.py +10 -0
server/app.py CHANGED
@@ -829,3 +829,13 @@ def state(
829
  """
830
  env = _get_session(session_id)
831
  return env.state()
 
 
 
 
 
 
 
 
 
 
 
829
  """
830
  env = _get_session(session_id)
831
  return env.state()
832
+
833
+
834
+ def main():
835
+ """Entry point for running the server directly."""
836
+ import uvicorn
837
+ uvicorn.run("server.app:app", host="0.0.0.0", port=7860, workers=1)
838
+
839
+
840
+ if __name__ == "__main__":
841
+ main()