JPLTedCas commited on
Commit
63ec4e3
·
1 Parent(s): ab1ecae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def write_excel(data,date):
74
  df.to_excel(writer, index = False, header=True,encoding='utf-8')
75
  with open(writer,'rb') as f:
76
  b64 = base64.b64encode(f.read())
77
- href = f'<a href="data:file/xls;base64,{b64}" download="new_file.{extension}">Download {extension}</a>'
78
 
79
  st.write(href, unsafe_allow_html=True)
80
 
 
74
  df.to_excel(writer, index = False, header=True,encoding='utf-8')
75
  with open(writer,'rb') as f:
76
  b64 = base64.b64encode(f.read())
77
+ href = f'<a href="data:file/xls;base64,{b64}" download="new_file.xls">Download xls</a>'
78
 
79
  st.write(href, unsafe_allow_html=True)
80