Update app.py
Browse files
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 |
-
|
|
|
|
|
|
| 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)
|