Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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.
|
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
|