Penality commited on
Commit
40a14a7
·
verified ·
1 Parent(s): cef3a59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ def retrieve_document(query):
150
  pdf_file = requests.get(API_URL_FILES, filename)
151
 
152
  # Read and return the document content
153
- with open(filename, "r", encoding="utf-8") as f:
154
  return f.read()
155
 
156
  def clean_text(text):
 
150
  pdf_file = requests.get(API_URL_FILES, filename)
151
 
152
  # Read and return the document content
153
+ with open(pdf_file, "r", encoding="utf-8") as f:
154
  return f.read()
155
 
156
  def clean_text(text):