Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,9 @@ from utils import *
|
|
9 |
from inversion_utils import *
|
10 |
from torch import autocast, inference_mode
|
11 |
import re
|
|
|
12 |
|
|
|
13 |
def randomize_seed_fn(seed, randomize_seed):
|
14 |
if randomize_seed:
|
15 |
seed = random.randint(0, np.iinfo(np.int32).max)
|
|
|
9 |
from inversion_utils import *
|
10 |
from torch import autocast, inference_mode
|
11 |
import re
|
12 |
+
import spaces
|
13 |
|
14 |
+
@spaces.GPU
|
15 |
def randomize_seed_fn(seed, randomize_seed):
|
16 |
if randomize_seed:
|
17 |
seed = random.randint(0, np.iinfo(np.int32).max)
|