hongaik commited on
Commit
40e3317
1 Parent(s): 14e895f

initial test

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -268,11 +268,11 @@ if len(uploaded_files) > 0:
268
 
269
  context2 = {**context, **flip4_dict, **fold4_dict}
270
  doc.render(context2)
271
- results = doc.save("SEAO Fold 4_Flip 4 Quality Monitoring (" + datetime.datetime.now().strftime("%#d %b") + ").docx")
272
 
273
  st.download_button(
274
  label="Download report here",
275
- data=results,
276
  file_name="SEAO Fold 4_Flip 4 Quality Monitoring (" + datetime.datetime.now().strftime("%#d %b") + ").docx",
277
  mime='application/vnd.openxmlformats-officedocument.wordprocessingml.document',
278
  )
 
268
 
269
  context2 = {**context, **flip4_dict, **fold4_dict}
270
  doc.render(context2)
271
+ #results = doc.save("SEAO Fold 4_Flip 4 Quality Monitoring (" + datetime.datetime.now().strftime("%#d %b") + ").docx")
272
 
273
  st.download_button(
274
  label="Download report here",
275
+ data=doc,
276
  file_name="SEAO Fold 4_Flip 4 Quality Monitoring (" + datetime.datetime.now().strftime("%#d %b") + ").docx",
277
  mime='application/vnd.openxmlformats-officedocument.wordprocessingml.document',
278
  )