acecalisto3 commited on
Commit
4c11a96
·
verified ·
1 Parent(s): 0c29f23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from tqdm import tqdm
7
  import time
8
  import numpy as np
9
  import base64
10
- from gradio.components import Download
11
 
12
 
13
  # Defining the repository information and the trigger word
@@ -86,7 +86,7 @@ with gr.Blocks() as demo:
86
 
87
  with gr.Row():
88
  svg_display = gr.HTML()
89
- download_button = gr.File(label="Download SVG", file_name="output.svg")
90
 
91
  def display_svg(svg_data):
92
  # Encode SVG data in base64 for data URI
 
7
  import time
8
  import numpy as np
9
  import base64
10
+ from gradio.components import DownloadButton # Updated import
11
 
12
 
13
  # Defining the repository information and the trigger word
 
86
 
87
  with gr.Row():
88
  svg_display = gr.HTML()
89
+ download_button = gr.Download(label="Download SVG") # Updated component usage
90
 
91
  def display_svg(svg_data):
92
  # Encode SVG data in base64 for data URI