Spaces:
Runtime error
Runtime error
initial test
Browse files
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=
|
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 |
)
|