Spaces:
Runtime error
Runtime error
bug
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import sys
|
3 |
import time
|
4 |
import os
|
@@ -40,7 +40,7 @@ pipe = DiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)
|
|
40 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
41 |
pipe.to('cuda')
|
42 |
|
43 |
-
|
44 |
def core(bundle):
|
45 |
generator = torch.Generator().manual_seed(int(bundle["seed"]))
|
46 |
result = pipe(
|
|
|
1 |
+
import spaces
|
2 |
import sys
|
3 |
import time
|
4 |
import os
|
|
|
40 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
41 |
pipe.to('cuda')
|
42 |
|
43 |
+
@spaces.GPU(duration=120)
|
44 |
def core(bundle):
|
45 |
generator = torch.Generator().manual_seed(int(bundle["seed"]))
|
46 |
result = pipe(
|