Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
ca5dbaa
1
Parent(s):
c3a22a8
rebuild
Browse files
app.py
CHANGED
|
@@ -92,16 +92,12 @@ def tprint(msg: str):
|
|
| 92 |
# GPU decorator
|
| 93 |
try:
|
| 94 |
import spaces
|
| 95 |
-
|
| 96 |
gpu = spaces.GPU
|
| 97 |
except Exception:
|
| 98 |
-
|
| 99 |
def gpu(*args, **kwargs):
|
| 100 |
"""GPU decorator placeholder when spaces module is not available."""
|
| 101 |
-
|
| 102 |
def wrap(fn):
|
| 103 |
return fn
|
| 104 |
-
|
| 105 |
return wrap
|
| 106 |
|
| 107 |
|
|
|
|
| 92 |
# GPU decorator
|
| 93 |
try:
|
| 94 |
import spaces
|
|
|
|
| 95 |
gpu = spaces.GPU
|
| 96 |
except Exception:
|
|
|
|
| 97 |
def gpu(*args, **kwargs):
|
| 98 |
"""GPU decorator placeholder when spaces module is not available."""
|
|
|
|
| 99 |
def wrap(fn):
|
| 100 |
return fn
|
|
|
|
| 101 |
return wrap
|
| 102 |
|
| 103 |
|