Download server/app.py from teja944/meta: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/spaces/teja944/meta/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/teja944/meta/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/teja944/meta/resolve/main/server/app.py
472 Bytes
| from dotenv import load_dotenv | |
| load_dotenv() | |
| import uvicorn | |
| from openenv.core.env_server.http_server import create_app | |
| from env import CustomerSupportEnv | |
| from models import Action, Observation | |
| # Use the environment class and Pydantic types to create the app | |
| app = create_app( | |
| CustomerSupportEnv, | |
| Action, | |
| Observation, | |
| env_name="customer_support_env" | |
| ) | |
| def main(): | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |
| if __name__ == "__main__": | |
| main() | |