Spaces:
Sleeping
Sleeping
Error fix
Browse files
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 |
|