0x90e commited on
Commit
b5bfb9a
·
1 Parent(s): a1880d1

download button return

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -26,10 +26,6 @@ css = '''
26
  height: 100% !important;
27
  }
28
 
29
- #preview_img + div {
30
- display: none;
31
- }
32
-
33
  #preview_file .h-full.min-h-\[15rem\].flex.justify-center.items-center {
34
  min-height: initial !important;
35
  padding: 10px 0;
@@ -84,7 +80,7 @@ with gr.Blocks(title=title, css=css) as demo:
84
  output_image = gr.Image(type="filepath", interactive=False, label="Upscaled image", elem_id="preview_img")
85
 
86
  with gr.Row():
87
- out_file = gr.File(interactive=False, show_label=False, visible=False, elem_id="preview_file")
88
 
89
  gr.HTML(value="<p><a href='https://upscale.wiki/wiki/Model_Database'>Model Database</a></p><p><h2>Known issue:</h2> when downloading a photo for the second time in Colab, it doesn't work. If someone knows why, please create a thread in the discussion tab and I'll fix this issue.</p>")
90
 
 
26
  height: 100% !important;
27
  }
28
 
 
 
 
 
29
  #preview_file .h-full.min-h-\[15rem\].flex.justify-center.items-center {
30
  min-height: initial !important;
31
  padding: 10px 0;
 
80
  output_image = gr.Image(type="filepath", interactive=False, label="Upscaled image", elem_id="preview_img")
81
 
82
  with gr.Row():
83
+ out_file = gr.File(interactive=False, show_label=False, elem_id="preview_file")
84
 
85
  gr.HTML(value="<p><a href='https://upscale.wiki/wiki/Model_Database'>Model Database</a></p><p><h2>Known issue:</h2> when downloading a photo for the second time in Colab, it doesn't work. If someone knows why, please create a thread in the discussion tab and I'll fix this issue.</p>")
86