Simply layout
Browse files
app.py
CHANGED
@@ -312,53 +312,47 @@ with demo:
|
|
312 |
with gr.Accordion("CHANGELOG", open=False):
|
313 |
changelog = gr.Markdown(CHANGELOG_TEXT, elem_id="changelog-text")
|
314 |
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
)
|
319 |
|
320 |
-
|
321 |
-
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|
322 |
|
323 |
with gr.Accordion("β
Finished Evaluations", open=False):
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
)
|
331 |
with gr.Accordion("π Running Evaluation Queue", open=False):
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
)
|
339 |
|
340 |
with gr.Accordion("β³ Pending Evaluation Queue", open=False):
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
max_rows=5,
|
347 |
-
)
|
348 |
-
|
349 |
-
with gr.Row():
|
350 |
-
refresh_button = gr.Button("Refresh")
|
351 |
-
refresh_button.click(
|
352 |
-
refresh,
|
353 |
-
inputs=[],
|
354 |
-
outputs=[
|
355 |
-
leaderboard_table,
|
356 |
-
finished_eval_table,
|
357 |
-
running_eval_table,
|
358 |
-
pending_eval_table,
|
359 |
-
],
|
360 |
)
|
361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
with gr.Accordion("Submit a new model for evaluation"):
|
363 |
with gr.Row():
|
364 |
with gr.Column():
|
@@ -373,25 +367,22 @@ with demo:
|
|
373 |
is_delta_weight = gr.Checkbox(False, label="Delta weights")
|
374 |
base_model_name_textbox = gr.Textbox(label="base model (for delta)")
|
375 |
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
],
|
391 |
-
submission_result,
|
392 |
-
)
|
393 |
|
394 |
scheduler = BackgroundScheduler()
|
395 |
-
scheduler.add_job(restart_space,
|
396 |
scheduler.start()
|
397 |
demo.launch()
|
|
|
312 |
with gr.Accordion("CHANGELOG", open=False):
|
313 |
changelog = gr.Markdown(CHANGELOG_TEXT, elem_id="changelog-text")
|
314 |
|
315 |
+
leaderboard_table = gr.components.Dataframe(
|
316 |
+
value=leaderboard, headers=COLS, datatype=TYPES, max_rows=5
|
317 |
+
)
|
|
|
318 |
|
319 |
+
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|
|
|
320 |
|
321 |
with gr.Accordion("β
Finished Evaluations", open=False):
|
322 |
+
finished_eval_table = gr.components.Dataframe(
|
323 |
+
value=finished_eval_queue,
|
324 |
+
headers=EVAL_COLS,
|
325 |
+
datatype=EVAL_TYPES,
|
326 |
+
max_rows=5,
|
327 |
+
)
|
|
|
328 |
with gr.Accordion("π Running Evaluation Queue", open=False):
|
329 |
+
running_eval_table = gr.components.Dataframe(
|
330 |
+
value=running_eval_queue,
|
331 |
+
headers=EVAL_COLS,
|
332 |
+
datatype=EVAL_TYPES,
|
333 |
+
max_rows=5,
|
334 |
+
)
|
|
|
335 |
|
336 |
with gr.Accordion("β³ Pending Evaluation Queue", open=False):
|
337 |
+
pending_eval_table = gr.components.Dataframe(
|
338 |
+
value=pending_eval_queue,
|
339 |
+
headers=EVAL_COLS,
|
340 |
+
datatype=EVAL_TYPES,
|
341 |
+
max_rows=5,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
)
|
343 |
|
344 |
+
refresh_button = gr.Button("Refresh")
|
345 |
+
refresh_button.click(
|
346 |
+
refresh,
|
347 |
+
inputs=[],
|
348 |
+
outputs=[
|
349 |
+
leaderboard_table,
|
350 |
+
finished_eval_table,
|
351 |
+
running_eval_table,
|
352 |
+
pending_eval_table,
|
353 |
+
],
|
354 |
+
)
|
355 |
+
|
356 |
with gr.Accordion("Submit a new model for evaluation"):
|
357 |
with gr.Row():
|
358 |
with gr.Column():
|
|
|
367 |
is_delta_weight = gr.Checkbox(False, label="Delta weights")
|
368 |
base_model_name_textbox = gr.Textbox(label="base model (for delta)")
|
369 |
|
370 |
+
submit_button = gr.Button("Submit Eval")
|
371 |
+
submission_result = gr.Markdown()
|
372 |
+
submit_button.click(
|
373 |
+
add_new_eval,
|
374 |
+
[
|
375 |
+
model_name_textbox,
|
376 |
+
base_model_name_textbox,
|
377 |
+
revision_name_textbox,
|
378 |
+
is_8bit_toggle,
|
379 |
+
private,
|
380 |
+
is_delta_weight,
|
381 |
+
],
|
382 |
+
submission_result,
|
383 |
+
)
|
|
|
|
|
|
|
384 |
|
385 |
scheduler = BackgroundScheduler()
|
386 |
+
scheduler.add_job(restart_space, "interval", seconds=3600)
|
387 |
scheduler.start()
|
388 |
demo.launch()
|