Spaces:
Sleeping
Sleeping
Upload server/app.py with huggingface_hub
Browse files- 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()
|