0xgaryy commited on
Commit
cd579dc
·
1 Parent(s): 950187c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -91,7 +91,6 @@ def main():
91
  if submit_text:
92
  col1, col2 = st.beta_columns(2)
93
 
94
- # Apply Fxn Here
95
  res, proba, total_result = predict_emotions(raw_text)
96
 
97
  with col1:
@@ -104,7 +103,6 @@ def main():
104
 
105
  with col2:
106
  source = pd.DataFrame({'Proba': list(total_result.keys()), 'Emotion': list(total_result.values())})
107
- st.write(source)
108
 
109
  fig = alt.Chart(source).mark_bar().encode(x='Emotion',y='Proba',color='Emotion')
110
  st.altair_chart(fig,use_container_width=True)
 
91
  if submit_text:
92
  col1, col2 = st.beta_columns(2)
93
 
 
94
  res, proba, total_result = predict_emotions(raw_text)
95
 
96
  with col1:
 
103
 
104
  with col2:
105
  source = pd.DataFrame({'Proba': list(total_result.keys()), 'Emotion': list(total_result.values())})
 
106
 
107
  fig = alt.Chart(source).mark_bar().encode(x='Emotion',y='Proba',color='Emotion')
108
  st.altair_chart(fig,use_container_width=True)