Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ abs_path = Path(__file__).parent
|
|
10 |
|
11 |
# Any pandas-compatible data
|
12 |
leaderboard_df = jsonl_to_dataframe(str(abs_path / "leaderboard_data.jsonl"))
|
13 |
-
|
14 |
|
15 |
all_columns = ["Model", "Average Accuracy", "Precision", "#Params (B)", "Part Multiple Choice", "ARC Easy", "ARC Challenge", "MMLU Pro", "AUT Multiple Choice Persian"]
|
16 |
columns_to_average = ["Part Multiple Choice", "ARC Easy", "ARC Challenge", "MMLU Pro", "AUT Multiple Choice Persian"]
|
@@ -54,13 +54,12 @@ with gr.Blocks(css=custom_css) as demo:
|
|
54 |
model_name = gr.Textbox(label="Model name")
|
55 |
model_id = gr.Textbox(label="username/space e.g PartAI/Dorna-Llama3-8B-Instruct")
|
56 |
contact_email = gr.Textbox(label="Contact E-Mail")
|
57 |
-
license = gr.Dropdown(choices=["llama2", "llama3", "llama3.1", "llama3.2", "cc-by-nc-4.0", "mit", "apache-2.0", "gemma", "cc-by-nc-sa-4.0", "other"], label="License")
|
58 |
submit_btn = gr.Button("Submit")
|
59 |
|
60 |
-
submit_btn.click(submit, inputs=[model_name, model_id, contact_email
|
61 |
|
62 |
gr.Markdown("""
|
63 |
Please find more information about Part DP AI on [partdp.ai](https://partdp.ai)""")
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
-
demo.launch()
|
|
|
10 |
|
11 |
# Any pandas-compatible data
|
12 |
leaderboard_df = jsonl_to_dataframe(str(abs_path / "leaderboard_data.jsonl"))
|
13 |
+
|
14 |
|
15 |
all_columns = ["Model", "Average Accuracy", "Precision", "#Params (B)", "Part Multiple Choice", "ARC Easy", "ARC Challenge", "MMLU Pro", "AUT Multiple Choice Persian"]
|
16 |
columns_to_average = ["Part Multiple Choice", "ARC Easy", "ARC Challenge", "MMLU Pro", "AUT Multiple Choice Persian"]
|
|
|
54 |
model_name = gr.Textbox(label="Model name")
|
55 |
model_id = gr.Textbox(label="username/space e.g PartAI/Dorna-Llama3-8B-Instruct")
|
56 |
contact_email = gr.Textbox(label="Contact E-Mail")
|
|
|
57 |
submit_btn = gr.Button("Submit")
|
58 |
|
59 |
+
submit_btn.click(submit, inputs=[model_name, model_id, contact_email], outputs=[])
|
60 |
|
61 |
gr.Markdown("""
|
62 |
Please find more information about Part DP AI on [partdp.ai](https://partdp.ai)""")
|
63 |
|
64 |
if __name__ == "__main__":
|
65 |
+
demo.launch()
|