Spaces:
No application file
No application file
| """ | |
| FastAPI server for Code Debugging Challenge environment. | |
| """ | |
| from openenv.core.env_server import create_app | |
| from ..models import DebugAction, DebugObservation | |
| from .debug_environment import DebugEnvironment | |
| def create_debug_environment(): | |
| """Factory function to create environment instances.""" | |
| return DebugEnvironment() | |
| # Create FastAPI app with OpenEnv integration | |
| app = create_app( | |
| create_debug_environment, | |
| DebugAction, | |
| DebugObservation, | |
| env_name="code_debug_env" | |
| ) | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=8000) | |