dwipper commited on
Commit
fddda6e
·
1 Parent(s): 49d1d74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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
- #return {pdf_download_file: file_name_tbox}
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(