Spaces:
Running
on
Zero
Running
on
Zero
Update app_v4.py
Browse files
app_v4.py
CHANGED
|
@@ -273,11 +273,11 @@ with gr.Blocks(title="FLUX Turbo Upscaler", fill_height=True) as demo:
|
|
| 273 |
control_image.upload(
|
| 274 |
generate_caption,
|
| 275 |
inputs=[control_image],
|
| 276 |
-
outputs=[caption_state]
|
| 277 |
).then(
|
| 278 |
generate_focus,
|
| 279 |
inputs=[control_image, focus],
|
| 280 |
-
outputs=[focus_state]
|
| 281 |
).then(
|
| 282 |
combine_caption_focus,
|
| 283 |
inputs=[caption_state, focus_state],
|
|
@@ -286,11 +286,11 @@ with gr.Blocks(title="FLUX Turbo Upscaler", fill_height=True) as demo:
|
|
| 286 |
caption_button.click(
|
| 287 |
fn=generate_caption,
|
| 288 |
inputs=[control_image],
|
| 289 |
-
outputs=[prompt]
|
| 290 |
).then(
|
| 291 |
generate_focus,
|
| 292 |
inputs=[control_image, focus],
|
| 293 |
-
outputs=[focus_state]
|
| 294 |
).then(
|
| 295 |
combine_caption_focus,
|
| 296 |
inputs=[caption_state, focus_state],
|
|
|
|
| 273 |
control_image.upload(
|
| 274 |
generate_caption,
|
| 275 |
inputs=[control_image],
|
| 276 |
+
outputs=[caption_state, original_dimensions]
|
| 277 |
).then(
|
| 278 |
generate_focus,
|
| 279 |
inputs=[control_image, focus],
|
| 280 |
+
outputs=[focus_state, original_dimensions]
|
| 281 |
).then(
|
| 282 |
combine_caption_focus,
|
| 283 |
inputs=[caption_state, focus_state],
|
|
|
|
| 286 |
caption_button.click(
|
| 287 |
fn=generate_caption,
|
| 288 |
inputs=[control_image],
|
| 289 |
+
outputs=[prompt, original_dimensions]
|
| 290 |
).then(
|
| 291 |
generate_focus,
|
| 292 |
inputs=[control_image, focus],
|
| 293 |
+
outputs=[focus_state, original_dimensions]
|
| 294 |
).then(
|
| 295 |
combine_caption_focus,
|
| 296 |
inputs=[caption_state, focus_state],
|