Spaces:
Runtime error
Runtime error
test leaderboard output
Browse files
app.py
CHANGED
|
@@ -13,6 +13,7 @@ from time import sleep
|
|
| 13 |
import boto3
|
| 14 |
import gradio as gr
|
| 15 |
import requests
|
|
|
|
| 16 |
|
| 17 |
logging.basicConfig(level=os.getenv("LOG_LEVEL", "INFO"))
|
| 18 |
|
|
@@ -204,6 +205,9 @@ chosen_one_second = functools.partial(chosen_one, 2)
|
|
| 204 |
chosen_one_tie = functools.partial(chosen_one, 0)
|
| 205 |
chosen_one_suck = functools.partial(chosen_one, 1)
|
| 206 |
|
|
|
|
|
|
|
|
|
|
| 207 |
with gr.Blocks() as arena:
|
| 208 |
with gr.Row():
|
| 209 |
with gr.Column():
|
|
@@ -257,6 +261,7 @@ with gr.Blocks() as arena:
|
|
| 257 |
### TBD
|
| 258 |
- This is very much a work-in-progress, if you'd like to help build this out, join us on [Discord](https://discord.gg/QYF8QrtEUm)
|
| 259 |
""")
|
|
|
|
| 260 |
state = gr.State({})
|
| 261 |
|
| 262 |
clear.click(lambda: None, None, chatbot1, queue=False)
|
|
|
|
| 13 |
import boto3
|
| 14 |
import gradio as gr
|
| 15 |
import requests
|
| 16 |
+
from datasets import load_dataset
|
| 17 |
|
| 18 |
logging.basicConfig(level=os.getenv("LOG_LEVEL", "INFO"))
|
| 19 |
|
|
|
|
| 205 |
chosen_one_tie = functools.partial(chosen_one, 0)
|
| 206 |
chosen_one_suck = functools.partial(chosen_one, 1)
|
| 207 |
|
| 208 |
+
elo_scores = load_dataset("openaccess-ai-collective/chatbot-arena-elo-scores")
|
| 209 |
+
elo_scores = elo_scores.sort("elo_score")
|
| 210 |
+
|
| 211 |
with gr.Blocks() as arena:
|
| 212 |
with gr.Row():
|
| 213 |
with gr.Column():
|
|
|
|
| 261 |
### TBD
|
| 262 |
- This is very much a work-in-progress, if you'd like to help build this out, join us on [Discord](https://discord.gg/QYF8QrtEUm)
|
| 263 |
""")
|
| 264 |
+
gr.DataFrame(elo_scores)
|
| 265 |
state = gr.State({})
|
| 266 |
|
| 267 |
clear.click(lambda: None, None, chatbot1, queue=False)
|