Update app.py
Browse files
app.py
CHANGED
|
@@ -602,63 +602,7 @@ def main():
|
|
| 602 |
with gr.Tab("Submit Here"):
|
| 603 |
gr.Markdown(ABOUT_SECTION)
|
| 604 |
gr.Markdown("---")
|
| 605 |
-
gr.Markdown("#
|
| 606 |
-
with gr.Column():
|
| 607 |
-
model_name_input = gr.Textbox(
|
| 608 |
-
label="Model Name",
|
| 609 |
-
placeholder="Enter the full model name from HuggingFace Hub (e.g., inceptionai/jais-family-30b-8k)"
|
| 610 |
-
)
|
| 611 |
-
revision_input = gr.Textbox(
|
| 612 |
-
label="Revision",
|
| 613 |
-
placeholder="main",
|
| 614 |
-
value="main"
|
| 615 |
-
)
|
| 616 |
-
precision_input = gr.Dropdown(
|
| 617 |
-
choices=["float16", "float32", "bfloat16", "8bit", "4bit"],
|
| 618 |
-
label="Precision",
|
| 619 |
-
value="float16"
|
| 620 |
-
)
|
| 621 |
-
params_input = gr.Textbox(
|
| 622 |
-
label="Params",
|
| 623 |
-
placeholder="Enter the approximate number of parameters as Integer (e.g., 7, 13, 30, 70 ...)"
|
| 624 |
-
)
|
| 625 |
-
# Changed from Dropdown to Textbox with default value "Open"
|
| 626 |
-
license_input = gr.Textbox(
|
| 627 |
-
label="License",
|
| 628 |
-
placeholder="Enter the license type (Generic one is 'Open' in case no License is provided)",
|
| 629 |
-
value="Open"
|
| 630 |
-
)
|
| 631 |
-
submit_button = gr.Button("Submit Model")
|
| 632 |
-
submission_result = gr.Markdown()
|
| 633 |
-
|
| 634 |
-
submit_button.click(
|
| 635 |
-
submit_model,
|
| 636 |
-
inputs=[model_name_input, revision_input, precision_input, params_input, license_input],
|
| 637 |
-
outputs=submission_result
|
| 638 |
-
)
|
| 639 |
-
|
| 640 |
-
# Load pending, finished, and failed requests
|
| 641 |
-
df_pending = load_requests('pending')
|
| 642 |
-
df_finished = load_requests('finished')
|
| 643 |
-
df_failed = load_requests('failed')
|
| 644 |
-
|
| 645 |
-
# Display the tables
|
| 646 |
-
gr.Markdown("## Evaluation Status of Open Models from the 🤗 Hub")
|
| 647 |
-
with gr.Accordion(f"Pending Evaluations ({len(df_pending)})", open=False):
|
| 648 |
-
if not df_pending.empty:
|
| 649 |
-
gr.Dataframe(df_pending)
|
| 650 |
-
else:
|
| 651 |
-
gr.Markdown("No pending evaluations.")
|
| 652 |
-
with gr.Accordion(f"Finished Evaluations ({len(df_finished)})", open=False):
|
| 653 |
-
if not df_finished.empty:
|
| 654 |
-
gr.Dataframe(df_finished)
|
| 655 |
-
else:
|
| 656 |
-
gr.Markdown("No finished evaluations.")
|
| 657 |
-
with gr.Accordion(f"Failed Evaluations ({len(df_failed)})", open=False):
|
| 658 |
-
if not df_failed.empty:
|
| 659 |
-
gr.Dataframe(df_failed)
|
| 660 |
-
else:
|
| 661 |
-
gr.Markdown("No failed evaluations.")
|
| 662 |
with gr.Row():
|
| 663 |
with gr.Accordion("📙 Citation", open=False):
|
| 664 |
citation_button = gr.Textbox(
|
|
|
|
| 602 |
with gr.Tab("Submit Here"):
|
| 603 |
gr.Markdown(ABOUT_SECTION)
|
| 604 |
gr.Markdown("---")
|
| 605 |
+
gr.Markdown("# This space is a legacy leaderboard in an archived mode and no longer accept models' submissions")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 606 |
with gr.Row():
|
| 607 |
with gr.Accordion("📙 Citation", open=False):
|
| 608 |
citation_button = gr.Textbox(
|