Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ dtype = torch.float16
|
|
18 |
|
19 |
# AuraFlow model
|
20 |
pipe = AuraFlowPipeline.from_pretrained(
|
21 |
-
"fal/AuraFlow",
|
22 |
torch_dtype=torch.float16
|
23 |
).to(device)
|
24 |
|
@@ -117,7 +117,7 @@ def generate_image(prompt, negative_prompt, seed, randomize_seed, width, height,
|
|
117 |
|
118 |
return image, seed
|
119 |
|
120 |
-
@spaces.GPU(duration=
|
121 |
def process_workflow(image, text_prompt, vlm_model_choice, use_enhancer, model_choice, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
122 |
if image is not None:
|
123 |
# Convert image to PIL if it's not already
|
|
|
18 |
|
19 |
# AuraFlow model
|
20 |
pipe = AuraFlowPipeline.from_pretrained(
|
21 |
+
"fal/AuraFlow-v0.2",
|
22 |
torch_dtype=torch.float16
|
23 |
).to(device)
|
24 |
|
|
|
117 |
|
118 |
return image, seed
|
119 |
|
120 |
+
@spaces.GPU(duration=100)
|
121 |
def process_workflow(image, text_prompt, vlm_model_choice, use_enhancer, model_choice, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
122 |
if image is not None:
|
123 |
# Convert image to PIL if it's not already
|