Update app.py
Browse files
app.py
CHANGED
|
@@ -35,4 +35,4 @@ 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.
|
|
|
|
| 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")
|