Spaces:
Running
on
Zero
Running
on
Zero
Kunpeng Song
commited on
Commit
•
f9b5427
1
Parent(s):
5feb88f
fix zero
Browse files
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -19,6 +19,7 @@ model = None
|
|
19 |
|
20 |
@spaces.GPU
|
21 |
def inference(rgb, subject, prompt, strength, seed):
|
|
|
22 |
seed = int(seed) if seed else 0
|
23 |
seed = seed if not seed == 0 else np.random.randint(0,1000)
|
24 |
|
|
|
19 |
|
20 |
@spaces.GPU
|
21 |
def inference(rgb, subject, prompt, strength, seed):
|
22 |
+
global model
|
23 |
seed = int(seed) if seed else 0
|
24 |
seed = seed if not seed == 0 else np.random.randint(0,1000)
|
25 |
|