Update app.py
Browse files
app.py
CHANGED
@@ -101,10 +101,9 @@ def main():
|
|
101 |
st.success("Prediction")
|
102 |
st.write("{}:{}".format(res, proba))
|
103 |
st.write("Confidence:{}".format(proba))
|
104 |
-
st.write(total_result.keys())
|
105 |
-
st.write(total_result.values())
|
106 |
|
107 |
source = pd.DataFrame({'Proba': list(total_result.keys()), 'Emotion': list(total_result.values())})
|
|
|
108 |
|
109 |
fig = alt.Chart(source).mark_bar().encode(x='Emotion',y='Proba',color='Emotion')
|
110 |
st.altair_chart(fig,use_container_width=True)
|
|
|
101 |
st.success("Prediction")
|
102 |
st.write("{}:{}".format(res, proba))
|
103 |
st.write("Confidence:{}".format(proba))
|
|
|
|
|
104 |
|
105 |
source = pd.DataFrame({'Proba': list(total_result.keys()), 'Emotion': list(total_result.values())})
|
106 |
+
st.write(source)
|
107 |
|
108 |
fig = alt.Chart(source).mark_bar().encode(x='Emotion',y='Proba',color='Emotion')
|
109 |
st.altair_chart(fig,use_container_width=True)
|