Omnibus commited on
Commit
3d71682
·
verified ·
1 Parent(s): 0b495bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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')) #source = requests.get(url)
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