Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,9 @@ def retrieve_document(query):
|
|
150 |
response = requests.get(API_URL_FILES, params={"file":filename})
|
151 |
|
152 |
print(response.content)
|
153 |
-
|
|
|
|
|
154 |
if response.status_code == 200:
|
155 |
with open(recieved_file, "wb") as f:
|
156 |
f.write(response.content)
|
|
|
150 |
response = requests.get(API_URL_FILES, params={"file":filename})
|
151 |
|
152 |
print(response.content)
|
153 |
+
|
154 |
+
recieved_file = "document.pdf"
|
155 |
+
|
156 |
if response.status_code == 200:
|
157 |
with open(recieved_file, "wb") as f:
|
158 |
f.write(response.content)
|