Spaces:
Sleeping
Sleeping
fix: add @spaces.GPU marker to satisfy HF startup check
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
import subprocess
|
| 3 |
import shlex
|
| 4 |
import os
|
|
@@ -18,6 +19,11 @@ ALLOWLIST = {
|
|
| 18 |
}
|
| 19 |
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
def is_allowed(args):
|
| 22 |
base = args[0] if args else ""
|
| 23 |
if base in ALLOWLIST:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import spaces
|
| 3 |
import subprocess
|
| 4 |
import shlex
|
| 5 |
import os
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
|
| 22 |
+
@spaces.GPU
|
| 23 |
+
def _gpu_marker():
|
| 24 |
+
return "ok"
|
| 25 |
+
|
| 26 |
+
|
| 27 |
def is_allowed(args):
|
| 28 |
base = args[0] if args else ""
|
| 29 |
if base in ALLOWLIST:
|