Spaces:
Build error
Build error
prominent download link
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ Refer to https://huggingface.co/spaces/dt/ascii-art/blob/main/app.py
|
|
3 |
'''
|
4 |
import os
|
5 |
os.system("pip install gradio==2.9b23")
|
6 |
-
os.environ["SYSTEM"] = "spaces"
|
7 |
|
8 |
# Python code to convert an image to ASCII image.
|
9 |
import sys, random, argparse
|
@@ -192,7 +191,7 @@ def sepia(input_img):
|
|
192 |
encodedBytes = base64.b64encode(my_html.encode("utf-8"))
|
193 |
encodedStr = str(encodedBytes, "utf-8")
|
194 |
my_file_download = r'''
|
195 |
-
<a href="data:image/svg+xml;base64,%s" download="result.svg">Click to download result.svg</a>.
|
196 |
''' % encodedStr
|
197 |
|
198 |
return [my_image, my_file_download, my_html]
|
|
|
3 |
'''
|
4 |
import os
|
5 |
os.system("pip install gradio==2.9b23")
|
|
|
6 |
|
7 |
# Python code to convert an image to ASCII image.
|
8 |
import sys, random, argparse
|
|
|
191 |
encodedBytes = base64.b64encode(my_html.encode("utf-8"))
|
192 |
encodedStr = str(encodedBytes, "utf-8")
|
193 |
my_file_download = r'''
|
194 |
+
<a href="data:image/svg+xml;base64,%s" download="result.svg" style="background-color:rgb(0,0,255)">Click to download result.svg</a>.
|
195 |
''' % encodedStr
|
196 |
|
197 |
return [my_image, my_file_download, my_html]
|