Spaces:
Sleeping
Sleeping
| """ | |
| Run Server: Start the OpenEnv HTTP server for remote agent interaction. | |
| """ | |
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| import uvicorn | |
| def main(): | |
| print("๐ Starting Orchestrate-AI OpenEnv Server...") | |
| print(" URL: http://localhost:8000") | |
| print(" Docs: http://localhost:8000/docs") | |
| print(" Health: http://localhost:8000/health") | |
| uvicorn.run( | |
| "orchestrate_env.server.app:app", | |
| host="0.0.0.0", | |
| port=8000, | |
| reload=True, | |
| ) | |
| if __name__ == "__main__": | |
| main() | |