Spaces:
Sleeping
Sleeping
Download server/app.py from KRISHDEV99/OpenenvScaler: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/KRISHDEV99/OpenenvScaler/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/KRISHDEV99/OpenenvScaler/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/KRISHDEV99/OpenenvScaler/resolve/main/server/app.py
571 Bytes
| from __future__ import annotations | |
| from openenv.core.env_server.http_server import create_app | |
| from customer_support_environment import CustomerSupportEnvironment | |
| from models import SupportAction, SupportObservation | |
| app = create_app( | |
| CustomerSupportEnvironment, | |
| SupportAction, | |
| SupportObservation, | |
| env_name="customer_support_benchmark", | |
| max_concurrent_envs=2, | |
| ) | |
| def main(host: str = "0.0.0.0", port: int = 8000) -> None: | |
| import uvicorn | |
| uvicorn.run(app, host=host, port=port) | |
| if __name__ == "__main__": | |
| main() |