pratyushmaini commited on
Commit
19db760
·
1 Parent(s): 7c6a382
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,8 +51,8 @@ def search_leaderboard(df, query):
51
  return df[df['Method'].str.contains(query)]
52
 
53
  # Function to change the version of the leaderboard
54
- def change_version(model, version):
55
- new_df = load_data(model, version)
56
  return new_df
57
 
58
  # Function to create plots
@@ -94,7 +94,7 @@ with demo:
94
  )
95
 
96
  leaderboard_table = gr.components.Dataframe(
97
- value=load_data("llama", "10%"),
98
  interactive=True,
99
  visible=True,
100
  )
 
51
  return df[df['Method'].str.contains(query)]
52
 
53
  # Function to change the version of the leaderboard
54
+ def change_version(model, version, metrics):
55
+ new_df = load_data(model, version, metrics)
56
  return new_df
57
 
58
  # Function to create plots
 
94
  )
95
 
96
  leaderboard_table = gr.components.Dataframe(
97
+ value=load_data("llama", "10%", ["ROUGE", "Truth Ratio", "Prob."]),
98
  interactive=True,
99
  visible=True,
100
  )