Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -336,12 +336,11 @@ def download_pdf(compliance_comments,contract_redline_html,file_name_tbox):
|
|
336 |
with open('Champion 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 |
|
343 |
-
|
344 |
-
return {pdf_download_file: "Champion Contract Test.pdf"}
|
345 |
|
346 |
# Gradio UI
|
347 |
CIMStheme = gr.themes.Soft().set(
|
|
|
336 |
with open('Champion 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: "Champion Contract Test.pdf"}
|
344 |
|
345 |
# Gradio UI
|
346 |
CIMStheme = gr.themes.Soft().set(
|