Spaces:
Sleeping
Sleeping
Update query.py
Browse files
query.py
CHANGED
@@ -157,7 +157,7 @@ class VectaraQuery():
|
|
157 |
if line: # filter out keep-alive new lines
|
158 |
data = json.loads(line.decode('utf-8'))
|
159 |
res = data['result']
|
160 |
-
|
161 |
if response_set is None:
|
162 |
# grab next chunk and yield it as output
|
163 |
summary = res.get('summary', None)
|
|
|
157 |
if line: # filter out keep-alive new lines
|
158 |
data = json.loads(line.decode('utf-8'))
|
159 |
res = data['result']
|
160 |
+
response_set = res['responseSet']
|
161 |
if response_set is None:
|
162 |
# grab next chunk and yield it as output
|
163 |
summary = res.get('summary', None)
|