kaixinwang commited on
Commit
5282d1a
·
1 Parent(s): 812c39c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ if x:
33
  prob = tf.nn.softmax(preds, axis=1).numpy()
34
  prob_max = np.argmax(prob, axis=1)
35
  st.write("Your review is:", x)
36
- st.write("Sentiment:", mapping[prob_max], ", Score:", prob[0][prob_max][0])
37
 
38
 
39
  # x = st.slider('Select a value')
 
33
  prob = tf.nn.softmax(preds, axis=1).numpy()
34
  prob_max = np.argmax(prob, axis=1)
35
  st.write("Your review is:", x)
36
+ st.write("Sentiment:", mapping[prob_max[0]], ", Score:", prob[0][prob_max][0])
37
 
38
 
39
  # x = st.slider('Select a value')