Spaces:
Running
on
Zero
Running
on
Zero
Update app_v3.py
Browse files
app_v3.py
CHANGED
|
@@ -159,7 +159,7 @@ def process_image(control_image, user_prompt, system_prompt, scale, steps,
|
|
| 159 |
seed=seed,
|
| 160 |
guidance_end=guidance_end
|
| 161 |
)
|
| 162 |
-
yield f"Completed! Used prompt: {final_prompt}", image
|
| 163 |
except Exception as e:
|
| 164 |
yield f"Error: {str(e)}", None
|
| 165 |
raise
|
|
@@ -223,7 +223,7 @@ with gr.Blocks(title="FLUX Turbo Upscaler", fill_height=True) as demo:
|
|
| 223 |
controlnet_conditioning_scale, guidance_scale, seed,
|
| 224 |
guidance_end, temperature_slider, top_p_slider, max_tokens_slider, log_prompt
|
| 225 |
],
|
| 226 |
-
outputs=[output_caption, generated_image]
|
| 227 |
)
|
| 228 |
|
| 229 |
# caption_button.click(
|
|
|
|
| 159 |
seed=seed,
|
| 160 |
guidance_end=guidance_end
|
| 161 |
)
|
| 162 |
+
yield f"Completed! Used prompt: {final_prompt}", image, final_prompt
|
| 163 |
except Exception as e:
|
| 164 |
yield f"Error: {str(e)}", None
|
| 165 |
raise
|
|
|
|
| 223 |
controlnet_conditioning_scale, guidance_scale, seed,
|
| 224 |
guidance_end, temperature_slider, top_p_slider, max_tokens_slider, log_prompt
|
| 225 |
],
|
| 226 |
+
outputs=[output_caption, generated_image, prompt]
|
| 227 |
)
|
| 228 |
|
| 229 |
# caption_button.click(
|