Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}\'>
|
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():
|