PLB commited on
Commit
42c3b4e
1 Parent(s): f65f671

Added a video

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -7,16 +7,26 @@ elo_df = pd.read_csv("elo-20240326.csv")
7
  text_description = """
8
  # 🤼 LLM Colosseum Leaderboard
9
 
10
- LLM Colosseum is a new way to assess the relative performance of LLMs. We have them play Street Fighter III against each other, and we use the results to calculate their Elo ratings.
11
-
12
- Watch a demo of LLMs playing Street Fighter III [here](https://youtu.be/Kk8foX3dm2I).
13
  More info in the LLM Colosseum GitHub [repository](https://github.com/OpenGenerativeAI/llm-colosseum).
 
 
14
  """
15
 
 
 
 
 
 
 
 
 
16
  with gr.Blocks(
17
  title="LLM Colosseum Leaderboard",
18
  ) as demo:
19
  gr.Markdown(text_description)
20
  gr.Dataframe(value=elo_df, interactive=False)
 
 
21
 
22
  demo.launch()
 
7
  text_description = """
8
  # 🤼 LLM Colosseum Leaderboard
9
 
10
+ LLM Colosseum is a new way to assess the relative performance of LLMs. We have them play Street Fighter III against each other, and we use the results to calculate their Elo ratings.
 
 
11
  More info in the LLM Colosseum GitHub [repository](https://github.com/OpenGenerativeAI/llm-colosseum).
12
+
13
+ 🎥 Demo of LLMs playing Street Fighter III belo the table.
14
  """
15
 
16
+
17
+ def show_video():
18
+ # Returns the embed code, which Gradio will display using the HTML component
19
+ return youtube_embed_code
20
+
21
+
22
+ youtube_embed_code = '<iframe width="560" height="315" src="https://www.youtube.com/embed/Kk8foX3dm2I?si=5BJNkipqAXl4CRBu" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'
23
+
24
  with gr.Blocks(
25
  title="LLM Colosseum Leaderboard",
26
  ) as demo:
27
  gr.Markdown(text_description)
28
  gr.Dataframe(value=elo_df, interactive=False)
29
+ gr.Markdown("## Watch a demo of LLMs playing Street Fighter III:")
30
+ gr.HTML(value=youtube_embed_code)
31
 
32
  demo.launch()