Spaces:
Sleeping
Sleeping
Download server/app.py from Scalar-hackathon/phishing-env-2: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/spaces/Scalar-hackathon/phishing-env-2/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/Scalar-hackathon/phishing-env-2/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Scalar-hackathon/phishing-env-2/resolve/main/server/app.py
475 Bytes
| """ | |
| server/app.py - OpenEnv Validator Entry Point | |
| """ | |
| import sys | |
| import os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from env import app | |
| __all__ = ["app"] | |
| def main(): | |
| """Entry point for [project.scripts] and direct execution.""" | |
| import uvicorn | |
| uvicorn.run( | |
| "server.app:app", | |
| host="0.0.0.0", | |
| port=7860, | |
| reload=False, | |
| log_level="info", | |
| ) | |
| if __name__ == "__main__": | |
| main() |