Sasidhar commited on
Commit
cedf170
·
1 Parent(s): 4aa24cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,7 +46,7 @@ def get_classification(candidate_labels):
46
  data = {'Class': classification_output['labels'], 'Scores': classification_output['scores']}
47
  df = pd.DataFrame(data)
48
  df = df.sort_values(by='Scores', ascending=False)
49
- fig = px.bar(df, x='Scores', y='Class', orientation='h', width=300, height=300)
50
  fig.update_layout(
51
  yaxis=dict(
52
  autorange='reversed'
@@ -66,8 +66,8 @@ if classify_button_clicked:
66
  #print(classification_output)
67
  fig = get_classification(sentiments)
68
  # col5, col6= st.columns((1, 1))
69
- col1.markdown("***")
70
- col1.markdown("***")
71
  col1.write(fig)
72
 
73
  if entities:
 
46
  data = {'Class': classification_output['labels'], 'Scores': classification_output['scores']}
47
  df = pd.DataFrame(data)
48
  df = df.sort_values(by='Scores', ascending=False)
49
+ fig = px.bar(df, x='Scores', y='Class', orientation='h', width=400, height=300)
50
  fig.update_layout(
51
  yaxis=dict(
52
  autorange='reversed'
 
66
  #print(classification_output)
67
  fig = get_classification(sentiments)
68
  # col5, col6= st.columns((1, 1))
69
+ col1.markdown(" \n")
70
+
71
  col1.write(fig)
72
 
73
  if entities: