Jae-Won Chung commited on
Commit
968b189
1 Parent(s): 5e110cb

Fix: Downgrade Gradio to 3.39.0 due to DataFrame issue

Browse files
Files changed (4) hide show
  1. README.md +1 -1
  2. app.py +1 -2
  3. index.html +1 -1
  4. setup.py +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: "⚡"
4
  python_version: "3.9"
5
  app_file: "app.py"
6
  sdk: "gradio"
7
- sdk_version: "3.40.0"
8
  pinned: true
9
  tags: ["energy", "leaderboard"]
10
  colorFrom: "black"
 
4
  python_version: "3.9"
5
  app_file: "app.py"
6
  sdk: "gradio"
7
+ sdk_version: "3.39.0"
8
  pinned: true
9
  tags: ["energy", "leaderboard"]
10
  colorFrom: "black"
app.py CHANGED
@@ -517,7 +517,6 @@ with gr.Blocks(css=custom_css) as block:
517
  prompt_input = gr.Textbox(
518
  show_label=False,
519
  placeholder="Input your prompt, e.g., 'Explain machine learning in simple terms.'",
520
- autofocus=True,
521
  container=False,
522
  scale=20,
523
  elem_id="prompt-textarea",
@@ -628,7 +627,7 @@ with gr.Blocks(css=custom_css) as block:
628
 
629
  # Block: Leaderboard table.
630
  with gr.Row():
631
- dataframe = gr.Dataframe(type="pandas", elem_id="tab-leaderboard")
632
  # Make sure the models have clickable links.
633
  dataframe.change(None, None, None, _js=dataframe_update_js, queue=False)
634
  # Table automatically updates when users check or uncheck any checkbox.
 
517
  prompt_input = gr.Textbox(
518
  show_label=False,
519
  placeholder="Input your prompt, e.g., 'Explain machine learning in simple terms.'",
 
520
  container=False,
521
  scale=20,
522
  elem_id="prompt-textarea",
 
627
 
628
  # Block: Leaderboard table.
629
  with gr.Row():
630
+ dataframe = gr.Dataframe(type="pandas", elem_id="tab-leaderboard", interactive=False)
631
  # Make sure the models have clickable links.
632
  dataframe.change(None, None, None, _js=dataframe_update_js, queue=False)
633
  # Table automatically updates when users check or uncheck any checkbox.
index.html CHANGED
@@ -27,7 +27,7 @@
27
  <link rel="icon" type="image/png" sizes="16x16" href="https://ml.energy/leaderboard/assets/favicon/favicon-16x16.png">
28
  <link rel="manifest" href="https://ml.energy/leaderboard/assets/favicon/site.webmanifest">
29
  <!-- Gradio embedding -->
30
- <script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/3.40.0/gradio.js"></script>
31
  <!-- Google tag (gtag.js) -->
32
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-8NM6L1X6ML"></script>
33
  <script>
 
27
  <link rel="icon" type="image/png" sizes="16x16" href="https://ml.energy/leaderboard/assets/favicon/favicon-16x16.png">
28
  <link rel="manifest" href="https://ml.energy/leaderboard/assets/favicon/site.webmanifest">
29
  <!-- Gradio embedding -->
30
+ <script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/3.39.0/gradio.js"></script>
31
  <!-- Google tag (gtag.js) -->
32
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-8NM6L1X6ML"></script>
33
  <script>
setup.py CHANGED
@@ -8,7 +8,7 @@ extras_require = {
8
  ],
9
  "app": [
10
  "plotly==5.15.0",
11
- "gradio==3.40.0",
12
  "text_generation @ git+https://github.com/ml-energy/text_generation_energy@master",
13
  ],
14
  "benchmark": ["zeus-ml", "fschat==0.2.23", "tyro", "rich"],
 
8
  ],
9
  "app": [
10
  "plotly==5.15.0",
11
+ "gradio==3.39.0",
12
  "text_generation @ git+https://github.com/ml-energy/text_generation_energy@master",
13
  ],
14
  "benchmark": ["zeus-ml", "fschat==0.2.23", "tyro", "rich"],