Spaces:
Paused
Paused
Download run.py from FarelDeveloper/brat-api: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/spaces/FarelDeveloper/brat-api/resolve/main/run.py
- Command line
-
hf download hf://spaces/FarelDeveloper/brat-api/run.py
-
curl -L -o run.py https://huggingface.co/spaces/FarelDeveloper/brat-api/resolve/main/run.py
291 Bytes
| import subprocess | |
| import uvicorn | |
| from main import app | |
| if __name__ == "__main__": | |
| subprocess.run(["playwright", "install", "chromium"], check=True) | |
| uvicorn.run( | |
| app, | |
| host="0.0.0.0", | |
| port=7860, | |
| proxy_headers=True, | |
| forwarded_allow_ips="*" | |
| ) | |