kmfoda commited on
Commit
a5c5dd3
1 Parent(s): 70c3dc2

Edit app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,7 +107,7 @@ for validator in validators:
107
  final_total_results[-1]["Average ⬆️"] = np.array([final_total_results[0]["ARC (25-shot) ⬆️"], final_total_results[0]["HellaSwag (10-shot) ⬆️"],final_total_results[0]["TruthfulQA (0-shot) ⬆️"], final_total_results[0]["MMLU (5-shot) ⬆️"]]).mean()
108
 
109
  df = pd.DataFrame(results_cumulative)
110
- df = df[df["cleaned_result"] == "N/A"].groupby("result", as_index=False).count().sort_values(by = ["id"], ascending = False).head(5)[["result","id"]]
111
 
112
  demo = gr.Blocks()
113
  with demo:
@@ -116,7 +116,7 @@ with demo:
116
  with gr.Row():
117
  table_1 = gr.Dataframe(pd.DataFrame(final_total_results))
118
  with gr.Row():
119
- title = gr.Markdown(value=f"""# <p style="text-align: center;"> Analysis of top 5 N/As</p>""")
120
  with gr.Row():
121
  table_2 = gr.Dataframe(df)
122
  # with gr.Row(visible = False):
 
107
  final_total_results[-1]["Average ⬆️"] = np.array([final_total_results[0]["ARC (25-shot) ⬆️"], final_total_results[0]["HellaSwag (10-shot) ⬆️"],final_total_results[0]["TruthfulQA (0-shot) ⬆️"], final_total_results[0]["MMLU (5-shot) ⬆️"]]).mean()
108
 
109
  df = pd.DataFrame(results_cumulative)
110
+ df = df[df["cleaned_result"] == "N/A"].groupby("result", as_index=False).count().sort_values(by = ["id"], ascending = False).head(10)[["result","id"]].rename(columns={"result": "Result", "id": "ID"})
111
 
112
  demo = gr.Blocks()
113
  with demo:
 
116
  with gr.Row():
117
  table_1 = gr.Dataframe(pd.DataFrame(final_total_results))
118
  with gr.Row():
119
+ title = gr.Markdown(value=f"""# <p style="text-align: center;"> Analysis Of Top 10 N/A Responses</p>""")
120
  with gr.Row():
121
  table_2 = gr.Dataframe(df)
122
  # with gr.Row(visible = False):