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