Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -405,8 +405,8 @@ with gr.Blocks(css=css, title="🎨 Flux dev Creative Upscaler - Florence-2 + FL
|
|
405 |
# State to store the upscaled image
|
406 |
upscaled_image_state = gr.State()
|
407 |
|
408 |
-
# Hidden
|
409 |
-
download_data = gr.
|
410 |
|
411 |
# Event handlers
|
412 |
enhance_btn.click(
|
@@ -516,7 +516,6 @@ with gr.Blocks(css=css, title="🎨 Flux dev Creative Upscaler - Florence-2 + FL
|
|
516 |
a.download = 'upscaled_image.png';
|
517 |
a.click();
|
518 |
URL.revokeObjectURL(url);
|
519 |
-
// Clear the textbox
|
520 |
downloadData.value = '';
|
521 |
}
|
522 |
});
|
|
|
405 |
# State to store the upscaled image
|
406 |
upscaled_image_state = gr.State()
|
407 |
|
408 |
+
# Hidden textarea for base64 data
|
409 |
+
download_data = gr.TextArea(visible=False, elem_id="download_data")
|
410 |
|
411 |
# Event handlers
|
412 |
enhance_btn.click(
|
|
|
516 |
a.download = 'upscaled_image.png';
|
517 |
a.click();
|
518 |
URL.revokeObjectURL(url);
|
|
|
519 |
downloadData.value = '';
|
520 |
}
|
521 |
});
|