Spaces:
Runtime error
Runtime error
removed comments and refresh
Browse files
app.py
CHANGED
|
@@ -53,8 +53,6 @@ def predict(message, chatbot):
|
|
| 53 |
else:
|
| 54 |
gr.Warning(f"The key 'token' does not exist in this JSON object: {json_obj}")
|
| 55 |
|
| 56 |
-
#partial_message = partial_message + json_obj['token']['text']
|
| 57 |
-
#yield partial_message
|
| 58 |
except json.JSONDecodeError:
|
| 59 |
gr.Warning(f"This line is not valid JSON: {json_line}")
|
| 60 |
continue
|
|
|
|
| 53 |
else:
|
| 54 |
gr.Warning(f"The key 'token' does not exist in this JSON object: {json_obj}")
|
| 55 |
|
|
|
|
|
|
|
| 56 |
except json.JSONDecodeError:
|
| 57 |
gr.Warning(f"This line is not valid JSON: {json_line}")
|
| 58 |
continue
|