Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,6 +149,8 @@ def retrieve_document(query):
|
|
| 149 |
|
| 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()
|
|
|
|
| 149 |
|
| 150 |
pdf_file = requests.get(API_URL_FILES, filename)
|
| 151 |
|
| 152 |
+
print(pdf_file)
|
| 153 |
+
|
| 154 |
# Read and return the document content
|
| 155 |
with open(pdf_file, "r", encoding="utf-8") as f:
|
| 156 |
return f.read()
|