Spaces:
Sleeping
Sleeping
Download app.py from UsergyAI/rubric-workspace: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/UsergyAI/rubric-workspace/resolve/main/app.py
- Command line
-
hf download hf://spaces/UsergyAI/rubric-workspace/app.py
-
curl -L -o app.py https://huggingface.co/spaces/UsergyAI/rubric-workspace/resolve/main/app.py
611 Bytes
| """Hugging Face Gradio entrypoint; no GPU reservation or paid hardware required.""" | |
| import os | |
| import spaces | |
| import uvicorn | |
| from rubric_app.gradio_host import create_space_app | |
| def zero_gpu_compatibility_marker(): | |
| """Declared for ZeroGPU platform validation; never called by this API-only app.""" | |
| return "unused" | |
| if __name__ == "__main__": | |
| if spaces.config.Config.zero_gpu: | |
| spaces.zero.startup() | |
| uvicorn.run( | |
| create_space_app(), | |
| host="0.0.0.0", | |
| port=int(os.environ.get("PORT", "7860")), | |
| proxy_headers=False, | |
| access_log=False, | |
| ) | |