Spaces:
Sleeping
Sleeping
david-oplatka
commited on
Commit
•
636ba9a
1
Parent(s):
b3159ec
Update query.py
Browse files
query.py
CHANGED
@@ -124,6 +124,8 @@ class VectaraQuery():
|
|
124 |
if key == 'data':
|
125 |
line = json.loads(value)
|
126 |
if line['type'] == 'generation_chunk':
|
127 |
-
|
|
|
|
|
128 |
|
129 |
return ''.join(chunks)
|
|
|
124 |
if key == 'data':
|
125 |
line = json.loads(value)
|
126 |
if line['type'] == 'generation_chunk':
|
127 |
+
chunk = line['generation_chunk']
|
128 |
+
chunks.append(chunk)
|
129 |
+
yield chunk
|
130 |
|
131 |
return ''.join(chunks)
|