add upload
Browse files
app.py
CHANGED
@@ -419,9 +419,6 @@ with demo:
|
|
419 |
with gr.Row():
|
420 |
with gr.Column():
|
421 |
model_name_textbox = gr.Textbox(label="Model name")
|
422 |
-
model_url_textbox = gr.Textbox(label="Model online api url")
|
423 |
-
model_api_key = gr.Textbox(label="Model online api key")
|
424 |
-
model_api_name_textbox = gr.Textbox(label="Online api model name")
|
425 |
model_type = gr.Dropdown(
|
426 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
427 |
label="Model type",
|
@@ -429,10 +426,6 @@ with demo:
|
|
429 |
value=None,
|
430 |
interactive=True,
|
431 |
)
|
432 |
-
runsh = gr.File(label="上传 run.sh 文件", file_types=[".sh"])
|
433 |
-
adapter = gr.File(label="上传 model_adapter.py 文件", file_types=[".py"])
|
434 |
-
|
435 |
-
with gr.Column():
|
436 |
private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
|
437 |
precision = gr.Dropdown(
|
438 |
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
@@ -450,6 +443,12 @@ with demo:
|
|
450 |
)
|
451 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
452 |
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
|
454 |
submit_button = gr.Button("Submit Eval")
|
455 |
submission_result = gr.Markdown()
|
|
|
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",
|
|
|
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],
|
|
|
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 |
+
runsh = gr.File(label="上传 run.sh 文件", file_types=[".sh"])
|
447 |
+
adapter = gr.File(label="上传 model_adapter.py 文件", file_types=[".py"])
|
448 |
+
with gr.Column():
|
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()
|