Spaces:
Runtime error
Runtime error
Commit
·
437386b
1
Parent(s):
1d56799
Update app.py
Browse files
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 |
-
content = "Sentiment: %s, prediction score: %.4f" %(mapping[prob_max[0]], prob[0][prob_max][0])
|
37 |
st.write(content)
|
38 |
# st.write("Sentiment:", mapping[prob_max[0]], "Prediction Score:", prob[0][prob_max][0])
|
39 |
|
|
|
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 |
+
content = "Sentiment: %s, prediction score: %.4f" %(mapping[prob_max[0]], prob[0][prob_max][0])
|
37 |
st.write(content)
|
38 |
# st.write("Sentiment:", mapping[prob_max[0]], "Prediction Score:", prob[0][prob_max][0])
|
39 |
|