Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ pipeline = FluxPipeline.from_pretrained(
|
|
19 |
use_auth_token=True # This uses the environment token if not passed explicitly
|
20 |
).to("cuda")
|
21 |
|
22 |
-
@spaces.GPU(duration=
|
23 |
def generate(prompt, negative_prompt, width, height, sample_steps, lora_id):
|
24 |
try:
|
25 |
pipeline.load_lora_weights(lora_id)
|
|
|
19 |
use_auth_token=True # This uses the environment token if not passed explicitly
|
20 |
).to("cuda")
|
21 |
|
22 |
+
@spaces.GPU(duration=70)
|
23 |
def generate(prompt, negative_prompt, width, height, sample_steps, lora_id):
|
24 |
try:
|
25 |
pipeline.load_lora_weights(lora_id)
|