Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def generate_image(prompt, negative_prompt, seed, randomize_seed, width, height,
|
|
| 143 |
|
| 144 |
return image, seed
|
| 145 |
|
| 146 |
-
@spaces.GPU
|
| 147 |
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, num_images_per_prompt):
|
| 148 |
if image is not None:
|
| 149 |
# Convert image to PIL if it's not already
|
|
|
|
| 143 |
|
| 144 |
return image, seed
|
| 145 |
|
| 146 |
+
@spaces.GPU(duration=200)
|
| 147 |
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, num_images_per_prompt):
|
| 148 |
if image is not None:
|
| 149 |
# Convert image to PIL if it's not already
|