Spaces:
Sleeping
Sleeping
apehex commited on
Commit ·
c8d8efd
1
Parent(s): a3ef3ce
Use the special wrapper to handle GPUs from HF spaces
Browse files- app.py +6 -3
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
-
import
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
+
import psaiops.score.residual.app as app
|
| 3 |
|
| 4 |
+
app.update_computation_state = spaces.GPU(duration=60)(app.update_computation_state)
|
| 5 |
+
|
| 6 |
+
demo = app.create_app()
|
| 7 |
+
demo.launch(share=True)
|
requirements.txt
CHANGED
|
@@ -3,4 +3,5 @@ deformers>=0.0
|
|
| 3 |
gradio>=5.0
|
| 4 |
kernels>=0.10
|
| 5 |
psaiops>=0.4
|
|
|
|
| 6 |
triton==3.4
|
|
|
|
| 3 |
gradio>=5.0
|
| 4 |
kernels>=0.10
|
| 5 |
psaiops>=0.4
|
| 6 |
+
spaces>=0.44
|
| 7 |
triton==3.4
|