Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -376,63 +376,8 @@ with demo:
|
|
376 |
max_rows=5,
|
377 |
)
|
378 |
with gr.Row():
|
379 |
-
gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
|
380 |
-
|
381 |
-
with gr.Row():
|
382 |
-
with gr.Column():
|
383 |
-
model_name_textbox = gr.Textbox(label="Model name")
|
384 |
-
revision_name_textbox = gr.Textbox(
|
385 |
-
label="revision", placeholder="main"
|
386 |
-
)
|
387 |
-
private = gr.Checkbox(
|
388 |
-
False, label="Private", visible=not IS_PUBLIC
|
389 |
-
)
|
390 |
-
model_type = gr.Dropdown(
|
391 |
-
choices=["pretrained", "fine-tuned", "with RL"],
|
392 |
-
label="Model type",
|
393 |
-
multiselect=False,
|
394 |
-
value="pretrained",
|
395 |
-
max_choices=1,
|
396 |
-
interactive=True,
|
397 |
-
)
|
398 |
-
|
399 |
-
with gr.Column():
|
400 |
-
precision = gr.Dropdown(
|
401 |
-
choices=["float16", "bfloat16", "8bit (LLM.int8)", "4bit (QLoRA / FP4)"],
|
402 |
-
label="Precision",
|
403 |
-
multiselect=False,
|
404 |
-
value="float16",
|
405 |
-
max_choices=1,
|
406 |
-
interactive=True,
|
407 |
-
)
|
408 |
-
weight_type = gr.Dropdown(
|
409 |
-
choices=["Original", "Delta", "Adapter"],
|
410 |
-
label="Weights type",
|
411 |
-
multiselect=False,
|
412 |
-
value="Original",
|
413 |
-
max_choices=1,
|
414 |
-
interactive=True,
|
415 |
-
)
|
416 |
-
base_model_name_textbox = gr.Textbox(
|
417 |
-
label="Base model (for delta or adapter weights)"
|
418 |
-
)
|
419 |
-
|
420 |
-
submit_button = gr.Button("Submit Eval")
|
421 |
-
submission_result = gr.Markdown()
|
422 |
-
submit_button.click(
|
423 |
-
add_new_eval,
|
424 |
-
[
|
425 |
-
model_name_textbox,
|
426 |
-
base_model_name_textbox,
|
427 |
-
revision_name_textbox,
|
428 |
-
precision,
|
429 |
-
private,
|
430 |
-
weight_type,
|
431 |
-
model_type
|
432 |
-
],
|
433 |
-
submission_result,
|
434 |
-
)
|
435 |
-
|
436 |
with gr.Row():
|
437 |
refresh_button = gr.Button("Refresh")
|
438 |
refresh_button.click(
|
|
|
376 |
max_rows=5,
|
377 |
)
|
378 |
with gr.Row():
|
379 |
+
gr.Markdown("# ✉️✨ Submit your model [here!](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)", elem_classes="markdown-text")
|
380 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
with gr.Row():
|
382 |
refresh_button = gr.Button("Refresh")
|
383 |
refresh_button.click(
|