vtrv.vls commited on
Commit
d8ef990
·
1 Parent(s): c03435f

table test

Browse files
Files changed (1) hide show
  1. app.py +19 -6
app.py CHANGED
@@ -35,10 +35,10 @@ def tab_arena():
35
 
36
  def tab_leaderboard():
37
  df = pd.DataFrame({
38
- "Model" : ['A', 'B', 'C',],
39
- "Test 1" : [0, 1, 0],
40
- "Test 2" : [1, 0, 1,],
41
- })
42
 
43
  # Function to apply text color
44
  def highlight_cols(x):
@@ -51,8 +51,21 @@ def tab_leaderboard():
51
  # s = df.style.apply(highlight_cols, axis = None)
52
 
53
  # Displaying the styled dataframe in Gradio
54
- with gradio.Blocks() as demo:
55
- gradio.DataFrame(df)
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  with open("test.md", "r") as f:
58
  TEST_MD = f.read()
 
35
 
36
  def tab_leaderboard():
37
  df = pd.DataFrame({
38
+ "Model" : ['A', 'B', 'C',],
39
+ "Test 1" : [0, 1, 0],
40
+ "Test 2" : [1, 0, 1,],
41
+ })
42
 
43
  # Function to apply text color
44
  def highlight_cols(x):
 
51
  # s = df.style.apply(highlight_cols, axis = None)
52
 
53
  # Displaying the styled dataframe in Gradio
54
+ with gradio.TabItem("Autogen Metrics", elem_id="od-benchmark-tab-table-ablation", id=0, elem_classes="subtab"):
55
+ with gradio.Blocks() as demo:
56
+ gradio.DataFrame(df)
57
+
58
+ with gradio.TabItem("Autometrics", elem_id="od-benchmark-tab-table-ablation", id=0, elem_classes="subtab"):
59
+ with gradio.Blocks() as demo:
60
+ gradio.DataFrame(df)
61
+
62
+ with gradio.TabItem("SBS metrics", elem_id="od-benchmark-tab-table-ablation", id=0, elem_classes="subtab"):
63
+ with gradio.Blocks() as demo:
64
+ gradio.DataFrame(df)
65
+
66
+ with gradio.TabItem("Arena ELO rating", elem_id="od-benchmark-tab-table-ablation", id=0, elem_classes="subtab"):
67
+ with gradio.Blocks() as demo:
68
+ gradio.DataFrame(df)
69
 
70
  with open("test.md", "r") as f:
71
  TEST_MD = f.read()