BioGeek commited on
Commit
45c5007
1 Parent(s): 5d57502

fix: pin gradio to latest version and fix errors

Browse files
Files changed (3) hide show
  1. .gitignore +1 -0
  2. app.py +4 -5
  3. requirements.txt +2 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ __pycache__/
app.py CHANGED
@@ -96,10 +96,8 @@ def get_dataset(
96
  df = df.rename(columns={"index": "Model"})
97
  df = df.sort_values(by=["All Tasks"], ascending=False)
98
 
99
- leaderboard_table = gr.components.Dataframe.update(
100
  value=df,
101
- # datatype=TYPES,
102
- max_rows=None,
103
  interactive=False,
104
  visible=True,
105
  )
@@ -122,7 +120,7 @@ def get_bar_plot(
122
  df["Score"] = scores / len(tasks)
123
  df = df.query(f"Dataset == {tasks}")
124
 
125
- bar_plot = gr.BarPlot.update(
126
  df,
127
  x="Model",
128
  y="Score",
@@ -199,7 +197,8 @@ with gr.Blocks() as demo:
199
  lines=7,
200
  label="Copy the BibTeX snippet to cite this source",
201
  elem_id="citation-button",
202
- ).style(show_copy_button=True)
 
203
 
204
  histone_tasks.change(
205
  get_dataset,
 
96
  df = df.rename(columns={"index": "Model"})
97
  df = df.sort_values(by=["All Tasks"], ascending=False)
98
 
99
+ leaderboard_table = gr.components.Dataframe(
100
  value=df,
 
 
101
  interactive=False,
102
  visible=True,
103
  )
 
120
  df["Score"] = scores / len(tasks)
121
  df = df.query(f"Dataset == {tasks}")
122
 
123
+ bar_plot = gr.BarPlot(
124
  df,
125
  x="Model",
126
  y="Score",
 
197
  lines=7,
198
  label="Copy the BibTeX snippet to cite this source",
199
  elem_id="citation-button",
200
+ show_copy_button=True
201
+ )
202
 
203
  histone_tasks.change(
204
  get_dataset,
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio==4.4.1
2
+ gradio-client==0.7.0