Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ from tqdm import tqdm
|
|
7 |
import time
|
8 |
import numpy as np
|
9 |
import base64
|
|
|
|
|
10 |
|
11 |
# Defining the repository information and the trigger word
|
12 |
repo = "artificialguybr/LineAniRedmond-LinearMangaSDXL-V2"
|
@@ -95,13 +97,12 @@ with gr.Blocks() as demo:
|
|
95 |
return html_content, svg_bytes
|
96 |
|
97 |
generate_button.click(
|
98 |
-
generate_image,
|
99 |
-
inputs=prompt,
|
100 |
outputs=None
|
101 |
).then(
|
102 |
-
display_svg,
|
103 |
inputs=generate_image,
|
104 |
outputs=[svg_display, download_button]
|
105 |
)
|
106 |
-
|
107 |
demo.launch()
|
|
|
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
|
14 |
repo = "artificialguybr/LineAniRedmond-LinearMangaSDXL-V2"
|
|
|
97 |
return html_content, svg_bytes
|
98 |
|
99 |
generate_button.click(
|
100 |
+
generate_image,
|
101 |
+
inputs=prompt,
|
102 |
outputs=None
|
103 |
).then(
|
104 |
+
display_svg,
|
105 |
inputs=generate_image,
|
106 |
outputs=[svg_display, download_button]
|
107 |
)
|
|
|
108 |
demo.launch()
|