lixuejing
commited on
Commit
·
742cd0b
1
Parent(s):
f231026
update
Browse files
app.py
CHANGED
@@ -414,18 +414,11 @@ with demo:
|
|
414 |
row_count=5,
|
415 |
)
|
416 |
with gr.Row():
|
417 |
-
gr.Markdown("# ✉️✨ Submit your
|
418 |
|
419 |
with gr.Row():
|
420 |
with gr.Column():
|
421 |
model_name_textbox = gr.Textbox(label="Model name")
|
422 |
-
model_type = gr.Dropdown(
|
423 |
-
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
424 |
-
label="Model type",
|
425 |
-
multiselect=False,
|
426 |
-
value=None,
|
427 |
-
interactive=True,
|
428 |
-
)
|
429 |
private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
|
430 |
precision = gr.Dropdown(
|
431 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
@@ -441,15 +434,30 @@ with demo:
|
|
441 |
value="Original",
|
442 |
interactive=True,
|
443 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
445 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
446 |
-
|
447 |
-
|
448 |
-
|
|
|
449 |
model_url_textbox = gr.Textbox(label="Model online api url")
|
450 |
model_api_key = gr.Textbox(label="Model online api key")
|
451 |
model_api_name_textbox = gr.Textbox(label="Online api model name")
|
452 |
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
submit_button = gr.Button("Submit Eval")
|
454 |
submission_result = gr.Markdown()
|
455 |
submit_button.click(
|
|
|
414 |
row_count=5,
|
415 |
)
|
416 |
with gr.Row():
|
417 |
+
gr.Markdown("# ✉️✨ Submit your modelinfos here!", elem_classes="markdown-text")
|
418 |
|
419 |
with gr.Row():
|
420 |
with gr.Column():
|
421 |
model_name_textbox = gr.Textbox(label="Model name")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
|
423 |
precision = gr.Dropdown(
|
424 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
|
|
434 |
value="Original",
|
435 |
interactive=True,
|
436 |
)
|
437 |
+
with gr.Column():
|
438 |
+
model_type = gr.Dropdown(
|
439 |
+
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
440 |
+
label="Model type",
|
441 |
+
multiselect=False,
|
442 |
+
value=None,
|
443 |
+
interactive=True,
|
444 |
+
)
|
445 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
446 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
447 |
+
|
448 |
+
with gr.Row():
|
449 |
+
gr.Markdown("## ✉️✨ Submit your API infos here!", elem_classes="markdown-text")
|
450 |
+
with gr.Row():
|
451 |
model_url_textbox = gr.Textbox(label="Model online api url")
|
452 |
model_api_key = gr.Textbox(label="Model online api key")
|
453 |
model_api_name_textbox = gr.Textbox(label="Online api model name")
|
454 |
|
455 |
+
with gr.Row():
|
456 |
+
gr.Markdown("## ✉️✨ Submit your inference infos here!", elem_classes="markdown-text")
|
457 |
+
with gr.Row():
|
458 |
+
runsh = gr.File(label="upload run.sh file", file_types=[".sh"])
|
459 |
+
adapter = gr.File(label="upload model_adapter.py file", file_types=[".py"])
|
460 |
+
|
461 |
submit_button = gr.Button("Submit Eval")
|
462 |
submission_result = gr.Markdown()
|
463 |
submit_button.click(
|