Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -428,6 +428,11 @@ def update_r_review_output(n_clicks, contents, filename, red_doc, requirements):
|
|
428 |
compliance_report = evaluate_compliance(document, requirements)
|
429 |
return dcc.Markdown(compliance_report)
|
430 |
|
|
|
|
|
|
|
|
|
|
|
431 |
@app.callback(
|
432 |
Output("download-shred-doc", "data"),
|
433 |
Input("download-shred", "n_clicks"),
|
|
|
428 |
compliance_report = evaluate_compliance(document, requirements)
|
429 |
return dcc.Markdown(compliance_report)
|
430 |
|
431 |
+
def create_docx(content):
|
432 |
+
doc = Document()
|
433 |
+
doc.add_paragraph(content)
|
434 |
+
return doc
|
435 |
+
|
436 |
@app.callback(
|
437 |
Output("download-shred-doc", "data"),
|
438 |
Input("download-shred", "n_clicks"),
|