Isabel Gwara commited on
Commit
3229447
·
1 Parent(s): 268e4c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,7 +90,7 @@ def get_feat():
90
  idx = feats.index(max_val)
91
  return data.columns[idx]
92
 
93
- acc = str(round(metrics.accuracy_score(y_test, y_pred) * 100, 1))
94
  most_imp_feat = get_feat()
95
  # info = get_article(acc, most_imp_feat)
96
 
@@ -156,7 +156,7 @@ with open('info.md') as f:
156
  with gr.Box():
157
  gr.Markdown(f"<h3>Accuracy: </h3>{acc}")
158
  with gr.Box():
159
- gr.Markdown(f"<h3>Most important question: </h3>{most_imp_feat}")
160
 
161
  gr.Markdown("<br />")
162
 
 
90
  idx = feats.index(max_val)
91
  return data.columns[idx]
92
 
93
+ acc = str(round(metrics.accuracy_score(y_test, y_pred) * 100, 1)) + "%"
94
  most_imp_feat = get_feat()
95
  # info = get_article(acc, most_imp_feat)
96
 
 
156
  with gr.Box():
157
  gr.Markdown(f"<h3>Accuracy: </h3>{acc}")
158
  with gr.Box():
159
+ gr.Markdown(f"<h3>Most important feature: </h3>{most_imp_feat}")
160
 
161
  gr.Markdown("<br />")
162