Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -96,8 +96,6 @@ def generate_response(agent_id, text_input, audio_input):
|
|
96 |
raw_data = chunk.decode('utf-8').replace("data: ", '')
|
97 |
if raw_data != "[DONE]":
|
98 |
try:
|
99 |
-
json_object = json.loads(raw_data.strip())
|
100 |
-
print()
|
101 |
json_object = json.loads(raw_data.strip())
|
102 |
token += json_object['data']
|
103 |
except json.JSONDecodeError as e:
|
|
|
96 |
raw_data = chunk.decode('utf-8').replace("data: ", '')
|
97 |
if raw_data != "[DONE]":
|
98 |
try:
|
|
|
|
|
99 |
json_object = json.loads(raw_data.strip())
|
100 |
token += json_object['data']
|
101 |
except json.JSONDecodeError as e:
|