awacke1 commited on
Commit
b781dbf
·
1 Parent(s): 7194637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -129,8 +129,9 @@ def get_download_link(file):
129
  with open(file, "rb") as f:
130
  bytes = f.read()
131
  b64 = base64.b64encode(bytes).decode()
132
- href = f'<a href="data:file/octet-stream;base64,{b64}" download=\'{os.path.basename(file)}\'>Click to download {os.path.basename(file)}</a>'
133
  return href
 
134
  def main():
135
  st.sidebar.title('Web Datasets Bulk Downloader')
136
 
 
129
  with open(file, "rb") as f:
130
  bytes = f.read()
131
  b64 = base64.b64encode(bytes).decode()
132
+ href = f'<a href="data:file/octet-stream;base64,{b64}" download=\'{os.path.basename(file)}\'>Download: {os.path.basename(file)}</a>'
133
  return href
134
+
135
  def main():
136
  st.sidebar.title('Web Datasets Bulk Downloader')
137