Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,7 +154,8 @@ def retrieve_document(query):
|
|
| 154 |
if response.status_code == 200:
|
| 155 |
with open(filename, "wb") as f:
|
| 156 |
f.write(response.content)
|
| 157 |
-
|
|
|
|
| 158 |
else:
|
| 159 |
print(f"Error: {response.status_code}, {response.json()}")
|
| 160 |
|
|
|
|
| 154 |
if response.status_code == 200:
|
| 155 |
with open(filename, "wb") as f:
|
| 156 |
f.write(response.content)
|
| 157 |
+
|
| 158 |
+
print(f"PDF received successfully: received_{filename}")
|
| 159 |
else:
|
| 160 |
print(f"Error: {response.status_code}, {response.json()}")
|
| 161 |
|