tombryan commited on
Commit
01ef847
1 Parent(s): a84190a
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def query(sentence: str) -> List[str]:
124
  # Send embedding to Azure VM
125
  response = requests.post(f"http://{AZURE_VM_ALABAMA}/retrieve", json = req)
126
  doc = response.json()
127
- article = doc['bboxes'][doc['article_id']]
128
  return article['raw_text']
129
 
130
 
 
124
  # Send embedding to Azure VM
125
  response = requests.post(f"http://{AZURE_VM_ALABAMA}/retrieve", json = req)
126
  doc = response.json()
127
+ article = doc['bboxes'][int(doc['article_id'])]
128
  return article['raw_text']
129
 
130