Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -544,9 +544,9 @@ def clear_fn():
|
|
544 |
|
545 |
def create_image(url):
|
546 |
'''cairosvg.svg2png(
|
547 |
-
url="/path/to/input.svg", write_to="/tmp/output.png")
|
548 |
output = cairosvg.svg2png(
|
549 |
-
bytestring=open("/path/to/input.svg").read().encode('utf-8'))
|
550 |
#source = urllib.request.urlopen(url).read()
|
551 |
#soup = bs4.BeautifulSoup(source.content,'lxml')
|
552 |
|
|
|
544 |
|
545 |
def create_image(url):
|
546 |
'''cairosvg.svg2png(
|
547 |
+
url="/path/to/input.svg", write_to="/tmp/output.png")
|
548 |
output = cairosvg.svg2png(
|
549 |
+
bytestring=open("/path/to/input.svg").read().encode('utf-8')) ''' #source = requests.get(url)
|
550 |
#source = urllib.request.urlopen(url).read()
|
551 |
#soup = bs4.BeautifulSoup(source.content,'lxml')
|
552 |
|