Olivia commited on
Commit
b5cf252
·
1 Parent(s): 378e285

info endpoint

Browse files
Files changed (2) hide show
  1. app.py +1 -5
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1461,8 +1461,7 @@ with gr.Blocks(
1461
  with gr.Row():
1462
  quick_download = gr.DownloadButton(
1463
  label="Download",
1464
- variant="secondary",
1465
- visible=False
1466
  )
1467
 
1468
  quick_stats = gr.Markdown(
@@ -1892,9 +1891,6 @@ with gr.Blocks(
1892
  fn=stylize_image,
1893
  inputs=[quick_image, quick_style, quick_backend, quick_compare, quick_watermark],
1894
  outputs=[quick_output, quick_stats, quick_download]
1895
- ).then(
1896
- lambda: gr.DownloadButton(visible=True),
1897
- outputs=[quick_download]
1898
  )
1899
 
1900
  # Style blending handlers
 
1461
  with gr.Row():
1462
  quick_download = gr.DownloadButton(
1463
  label="Download",
1464
+ variant="secondary"
 
1465
  )
1466
 
1467
  quick_stats = gr.Markdown(
 
1891
  fn=stylize_image,
1892
  inputs=[quick_image, quick_style, quick_backend, quick_compare, quick_watermark],
1893
  outputs=[quick_output, quick_stats, quick_download]
 
 
 
1894
  )
1895
 
1896
  # Style blending handlers
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
  # Core dependencies for StyleForge Hugging Face Space
2
  torch>=2.0.0
3
  torchvision>=0.15.0
4
- gradio==4.32.0
5
  huggingface_hub==0.20.0
6
  spaces
7
  Pillow>=9.5.0
 
1
  # Core dependencies for StyleForge Hugging Face Space
2
  torch>=2.0.0
3
  torchvision>=0.15.0
4
+ gradio==4.44.1
5
  huggingface_hub==0.20.0
6
  spaces
7
  Pillow>=9.5.0