Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
435c235
1
Parent(s):
b6d3179
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ pipe_schnell = DiffusionPipeline.from_pretrained(
|
|
29 |
)
|
30 |
|
31 |
@spaces.GPU(duration=75)
|
32 |
-
def run_parallel_models(prompt):
|
33 |
pipe_dev.load_lora_weights(hyper_lora)
|
34 |
image = pipe_dev(prompt, num_inference_steps=8, joint_attention_kwargs={"scale": 0.125}).images[0]
|
35 |
pipe_dev.unload_lora_weights()
|
|
|
29 |
)
|
30 |
|
31 |
@spaces.GPU(duration=75)
|
32 |
+
def run_parallel_models(prompt, progress=gr.Progress(track_tqdm=True)):
|
33 |
pipe_dev.load_lora_weights(hyper_lora)
|
34 |
image = pipe_dev(prompt, num_inference_steps=8, joint_attention_kwargs={"scale": 0.125}).images[0]
|
35 |
pipe_dev.unload_lora_weights()
|