Penality commited on
Commit
4df7749
·
verified ·
1 Parent(s): 2fc199d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def store_document_data(PDF_FILE):
48
  print(f"sending to {API_URL}")
49
 
50
  try:
51
- response = requests.post(API_URL, index=embedding)
52
  response_data = response.json()
53
  return response_data
54
  except requests.exceptions.RequestException as e:
 
48
  print(f"sending to {API_URL}")
49
 
50
  try:
51
+ response = requests.post(API_URL, json={"index": embedding})
52
  response_data = response.json()
53
  return response_data
54
  except requests.exceptions.RequestException as e: