m96tkmok commited on
Commit
b3b198b
·
verified ·
1 Parent(s): 44c35c7

Update app.py

Browse files

Refer temp.pdf

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -72,8 +72,9 @@ def generate_response(rag_chain, input_text):
72
 
73
  ### Ken 12/11/2024 ADD START
74
  def get_pdf(uploaded_file):
 
75
  if uploaded_file :
76
- temp_file = "./temp.pdf"
77
  # Delete the existing temp.pdf file if it exists
78
  if os.path.exists(temp_file):
79
  os.remove(temp_file)
 
72
 
73
  ### Ken 12/11/2024 ADD START
74
  def get_pdf(uploaded_file):
75
+ temp_file = "./temp.pdf"
76
  if uploaded_file :
77
+ #temp_file = "./temp.pdf"
78
  # Delete the existing temp.pdf file if it exists
79
  if os.path.exists(temp_file):
80
  os.remove(temp_file)