Penality commited on
Commit
ff980b9
·
verified ·
1 Parent(s): 08d16b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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)