0xgaryy commited on
Commit
06156dd
·
1 Parent(s): bd4f95f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def main():
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')
 
102
  st.write("{}:{}".format(res, proba))
103
  st.write("Confidence:{}".format(proba))
104
 
105
+ source = pd.DataFrame({'Proba': [1,2,3], 'Emotion': ['a','b','c'})
106
  st.write(source)
107
 
108
  fig = alt.Chart(source).mark_bar().encode(x='Emotion',y='Proba',color='Emotion')