ysharma HF staff commited on
Commit
44846a0
1 Parent(s): 96c2526

removed comments and refresh

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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