lvkaokao
commited on
Commit
Β·
2aa7f7b
1
Parent(s):
98d3a41
update submit ui.
Browse files
app.py
CHANGED
|
@@ -428,6 +428,7 @@ with demo:
|
|
| 428 |
private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
|
| 429 |
|
| 430 |
with gr.Column():
|
|
|
|
| 431 |
precision = gr.Dropdown(
|
| 432 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
| 433 |
label="Precision",
|
|
@@ -442,6 +443,7 @@ with demo:
|
|
| 442 |
value="int4",
|
| 443 |
interactive=True,
|
| 444 |
)
|
|
|
|
| 445 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)",
|
| 446 |
visible=not IS_PUBLIC)
|
| 447 |
compute_type = gr.Dropdown(
|
|
@@ -452,6 +454,19 @@ with demo:
|
|
| 452 |
interactive=True,
|
| 453 |
)
|
| 454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 455 |
with gr.Column():
|
| 456 |
with gr.Accordion(
|
| 457 |
f"β
Finished Evaluations ({len(finished_eval_queue_df)})",
|
|
@@ -488,22 +503,6 @@ with demo:
|
|
| 488 |
row_count=5,
|
| 489 |
)
|
| 490 |
|
| 491 |
-
submit_button = gr.Button("Submit Eval")
|
| 492 |
-
submission_result = gr.Markdown()
|
| 493 |
-
submit_button.click(
|
| 494 |
-
add_new_eval,
|
| 495 |
-
[
|
| 496 |
-
model_name_textbox,
|
| 497 |
-
revision_name_textbox,
|
| 498 |
-
private,
|
| 499 |
-
# quant_type,
|
| 500 |
-
precision,
|
| 501 |
-
weight_type,
|
| 502 |
-
compute_type,
|
| 503 |
-
],
|
| 504 |
-
submission_result,
|
| 505 |
-
)
|
| 506 |
-
|
| 507 |
with gr.Row():
|
| 508 |
with gr.Accordion("π Citation", open=False):
|
| 509 |
citation_button = gr.Textbox(
|
|
|
|
| 428 |
private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
|
| 429 |
|
| 430 |
with gr.Column():
|
| 431 |
+
"""
|
| 432 |
precision = gr.Dropdown(
|
| 433 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
| 434 |
label="Precision",
|
|
|
|
| 443 |
value="int4",
|
| 444 |
interactive=True,
|
| 445 |
)
|
| 446 |
+
"""
|
| 447 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)",
|
| 448 |
visible=not IS_PUBLIC)
|
| 449 |
compute_type = gr.Dropdown(
|
|
|
|
| 454 |
interactive=True,
|
| 455 |
)
|
| 456 |
|
| 457 |
+
submit_button = gr.Button("Submit Eval")
|
| 458 |
+
submission_result = gr.Markdown()
|
| 459 |
+
submit_button.click(
|
| 460 |
+
add_new_eval,
|
| 461 |
+
[
|
| 462 |
+
model_name_textbox,
|
| 463 |
+
revision_name_textbox,
|
| 464 |
+
private,
|
| 465 |
+
compute_dtype=compute_type,
|
| 466 |
+
],
|
| 467 |
+
submission_result,
|
| 468 |
+
)
|
| 469 |
+
|
| 470 |
with gr.Column():
|
| 471 |
with gr.Accordion(
|
| 472 |
f"β
Finished Evaluations ({len(finished_eval_queue_df)})",
|
|
|
|
| 503 |
row_count=5,
|
| 504 |
)
|
| 505 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 506 |
with gr.Row():
|
| 507 |
with gr.Accordion("π Citation", open=False):
|
| 508 |
citation_button = gr.Textbox(
|