Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -333,14 +333,14 @@ def download_pdf(compliance_comments,contract_redline_html,file_name_tbox):
|
|
333 |
#contract_redline_comments = "<h2><u>Contract Redline:</u></h2><br>"+contract_redline_html + "<br><h2><u>Compliance Comments:</u></h2><br>"+compliance_comments
|
334 |
global pdf_download
|
335 |
#pdf_download = pdfkit.from_string(contract_redline_comments,None,configuration=config)
|
336 |
-
with open('
|
337 |
pdf_download = file.read()
|
338 |
|
339 |
#with open("Champion Contract Test.pdf", 'wb') as file:
|
340 |
#file.write(pdf_download)
|
341 |
|
342 |
-
return {pdf_download_file: file_name_tbox}
|
343 |
-
|
344 |
|
345 |
# Gradio UI
|
346 |
CIMStheme = gr.themes.Soft().set(
|
|
|
333 |
#contract_redline_comments = "<h2><u>Contract Redline:</u></h2><br>"+contract_redline_html + "<br><h2><u>Compliance Comments:</u></h2><br>"+compliance_comments
|
334 |
global pdf_download
|
335 |
#pdf_download = pdfkit.from_string(contract_redline_comments,None,configuration=config)
|
336 |
+
with open('NILI Contract Redline.pdf', 'rb') as file:
|
337 |
pdf_download = file.read()
|
338 |
|
339 |
#with open("Champion Contract Test.pdf", 'wb') as file:
|
340 |
#file.write(pdf_download)
|
341 |
|
342 |
+
#return {pdf_download_file: file_name_tbox}
|
343 |
+
return {pdf_download_file: "NILI Contract Redline.pdf"}
|
344 |
|
345 |
# Gradio UI
|
346 |
CIMStheme = gr.themes.Soft().set(
|