Spaces:
Running
Running
Update query.py
Browse files
query.py
CHANGED
@@ -111,10 +111,7 @@ class VectaraQuery():
|
|
111 |
pattern_max_length = 50 # Example heuristic
|
112 |
for line in response.iter_lines():
|
113 |
if line: # filter out keep-alive new lines
|
114 |
-
data = json.loads(line.decode('utf-8'))
|
115 |
-
|
116 |
-
print(data)
|
117 |
-
|
118 |
res = data['result']
|
119 |
response_set = res['responseSet']
|
120 |
if response_set is None:
|
|
|
111 |
pattern_max_length = 50 # Example heuristic
|
112 |
for line in response.iter_lines():
|
113 |
if line: # filter out keep-alive new lines
|
114 |
+
data = json.loads(line.decode('utf-8'))
|
|
|
|
|
|
|
115 |
res = data['result']
|
116 |
response_set = res['responseSet']
|
117 |
if response_set is None:
|