awacke1 commited on
Commit
80e3dbe
·
verified ·
1 Parent(s): f65e87d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def get_download_link(file):
40
  with open(file, "rb") as f:
41
  bytes = f.read()
42
  b64 = base64.b64encode(bytes).decode()
43
- href = f'<a href="data:file/octet-stream;base64,{b64}" download=\'{file}\'>Click to download {file}</a>'
44
  return href
45
 
46
  def show_download_links():
 
40
  with open(file, "rb") as f:
41
  bytes = f.read()
42
  b64 = base64.b64encode(bytes).decode()
43
+ href = f'<a href="data:file/octet-stream;base64,{b64}" download=\'{file}\'>{file}</a>'
44
  return href
45
 
46
  def show_download_links():