devmm03 Claude Sonnet 5 commited on
Commit
472bb59
·
1 Parent(s): 059bf81

fix: add spaces package to requirements for ZeroGPU detection

Browse files

The spaces import in app.py was silently falling back to a no-op mock
decorator because the spaces package was never installed on the Space,
so @spaces.GPU never registered a real GPU function and HF's ZeroGPU
scheduler rejected startup with "No @spaces.GPU function detected".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. requirements.txt +1 -0
requirements.txt CHANGED
@@ -10,3 +10,4 @@ uvicorn[standard]>=0.22.0
10
  python-multipart>=0.0.6
11
  pydantic>=2.0.0
12
  gradio>=5.0.0
 
 
10
  python-multipart>=0.0.6
11
  pydantic>=2.0.0
12
  gradio>=5.0.0
13
+ spaces>=0.30.0