CathieDaDa commited on
Commit
035cb14
Β·
verified Β·
1 Parent(s): ab22d7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -9,12 +9,12 @@ file3 ='Overall.csv'
9
  df3 = pd.read_csv(file3)
10
 
11
  def display_table(table_choice):
12
- if table_choice == "Option 1: εŸΊη‘€ι€»θΎ‘θƒ½εŠ›ζŽ’ε":
13
- return df1
14
  elif table_choice == "Option 2: ζƒ…ε’ƒζŽ¨η†θƒ½εŠ›ζŽ’ε":
15
  return df2
16
- elif table_choice == "Option 3: ε€§θ―­θ¨€ζ¨‘εž‹ζŽ¨η†θƒ½εŠ›η»ΌεˆζŽ’ε":
17
- return df3
18
 
19
  with gr.Blocks() as demo:
20
  gr.Markdown(
@@ -26,13 +26,13 @@ with gr.Blocks() as demo:
26
 
27
  with gr.Tab("ε€§θ―­θ¨€ζ¨‘εž‹ζŽ¨η†θƒ½εŠ›θ―„ζ΅‹"):
28
  with gr.Column():
29
- dropdown = gr.Dropdown(choices=["Option 1: εŸΊη‘€ι€»θΎ‘θƒ½εŠ›ζŽ’ε",
30
  "Option 2: ζƒ…ε’ƒζŽ¨η†θƒ½εŠ›ζŽ’ε",
31
- "Option 3: ε€§θ―­θ¨€ζ¨‘εž‹ζŽ¨η†θƒ½εŠ›η»ΌεˆζŽ’ε"],
32
  label="Select a Leaderboard",
33
  value="Option 1: New Image Generation Quality Ranking")
34
 
35
- output = gr.DataFrame(value=dff1_1, max_height =900)
36
 
37
  dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
38
 
 
9
  df3 = pd.read_csv(file3)
10
 
11
  def display_table(table_choice):
12
+ if table_choice == "Option 1: ε€§θ―­θ¨€ζ¨‘εž‹ζŽ¨η†θƒ½εŠ›η»ΌεˆζŽ’ε":
13
+ return df3
14
  elif table_choice == "Option 2: ζƒ…ε’ƒζŽ¨η†θƒ½εŠ›ζŽ’ε":
15
  return df2
16
+ elif table_choice == "Option 3: εŸΊη‘€ι€»θΎ‘θƒ½εŠ›ζŽ’ε":
17
+ return df1
18
 
19
  with gr.Blocks() as demo:
20
  gr.Markdown(
 
26
 
27
  with gr.Tab("ε€§θ―­θ¨€ζ¨‘εž‹ζŽ¨η†θƒ½εŠ›θ―„ζ΅‹"):
28
  with gr.Column():
29
+ dropdown = gr.Dropdown(choices=["Option 1: ε€§θ―­θ¨€ζ¨‘εž‹ζŽ¨η†θƒ½εŠ›η»ΌεˆζŽ’ε",
30
  "Option 2: ζƒ…ε’ƒζŽ¨η†θƒ½εŠ›ζŽ’ε",
31
+ "Option 3: εŸΊη‘€ι€»θΎ‘θƒ½εŠ›ζŽ’ε"],
32
  label="Select a Leaderboard",
33
  value="Option 1: New Image Generation Quality Ranking")
34
 
35
+ output = gr.DataFrame(value=df3, max_height =900)
36
 
37
  dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
38