Alien-Y commited on
Commit
50b9426
·
1 Parent(s): 4b45cbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,4 +35,5 @@ tag = lbl_encoder.inverse_transform([np.argmax(result)])
35
  for i in data['intents']:
36
  if i['tag'] == tag:
37
  out = np.random.choice(i['responses'])
38
- st.json({'result': out}, encoding="utf8")
 
 
35
  for i in data['intents']:
36
  if i['tag'] == tag:
37
  out = np.random.choice(i['responses'])
38
+ out.encode("utf-8")
39
+ st.json(out)