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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -336,7 +336,12 @@ 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
- return {pdf_download_file: file_name_tbox}
 
 
 
 
 
340
 
341
  # Gradio UI
342
  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
+
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(