Spaces:
Running
Running
Update app.py
Browse files
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(
|
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):
|