Spaces:
Runtime error
Runtime error
Sasha Rush
commited on
Commit
·
7413d50
1
Parent(s):
883f060
leaderboard
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ tab = " "
|
|
27 |
repo = Repository(git_user="srush",
|
28 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
29 |
)
|
30 |
-
|
31 |
def start2(prompt, board, api_key):
|
32 |
out = ""
|
33 |
# for chunk in openai.ChatCompletion.create(
|
@@ -517,7 +517,15 @@ def move(board, action, old_pos):
|
|
517 |
return out
|
518 |
run_btn.click(run2, inputs={output}, outputs={im})
|
519 |
|
520 |
-
gr.HTML("""<center><h2>Leaderboard</h2></center>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
with gr.Row() as row:
|
522 |
team_name = gr.Text(label="Team Name")
|
523 |
leaderboard = gr.Button(value="Submit")
|
|
|
27 |
repo = Repository(git_user="srush",
|
28 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
29 |
)
|
30 |
+
repo.git_pull()
|
31 |
def start2(prompt, board, api_key):
|
32 |
out = ""
|
33 |
# for chunk in openai.ChatCompletion.create(
|
|
|
517 |
return out
|
518 |
run_btn.click(run2, inputs={output}, outputs={im})
|
519 |
|
520 |
+
gr.HTML("""<center><h2>Leaderboard</h2></center>
|
521 |
+
|
522 |
+
<center>
|
523 |
+
To submit, first run a model that gets to the end. It will output "Victory"!
|
524 |
+
Then come down to the bottom, type in your team name, and then click submit.
|
525 |
+
The score is the number of output tokens your solution takes.
|
526 |
+
</center>
|
527 |
+
|
528 |
+
""")
|
529 |
with gr.Row() as row:
|
530 |
team_name = gr.Text(label="Team Name")
|
531 |
leaderboard = gr.Button(value="Submit")
|