comrender commited on
Commit
1df2737
·
verified ·
1 Parent(s): 9aa2895

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 textbox for base64 data
409
- download_data = gr.Textbox(visible=False, elem_id="download_data")
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
  });