jihoo-kim commited on
Commit
f6edfe4
Β·
verified Β·
1 Parent(s): 6de4b3b
Files changed (1) hide show
  1. app.py +48 -48
app.py CHANGED
@@ -348,54 +348,54 @@ with demo:
348
  datatype=EVAL_TYPES,
349
  row_count=5,
350
  )
351
- # with gr.Row():
352
- # gr.Markdown("# βœ‰οΈβœ¨ Submit your model here!", elem_classes="markdown-text")
353
-
354
- # with gr.Row():
355
- # with gr.Column():
356
- # model_name_textbox = gr.Textbox(label="Model name")
357
- # revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
358
- # private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
359
- # model_type = gr.Dropdown(
360
- # choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
361
- # label="Model type",
362
- # multiselect=False,
363
- # value=ModelType.FT.to_str(" : "),
364
- # interactive=True,
365
- # )
366
-
367
- # with gr.Column():
368
- # precision = gr.Dropdown(
369
- # choices=[i.value.name for i in Precision if i != Precision.Unknown],
370
- # label="Precision",
371
- # multiselect=False,
372
- # value="float16",
373
- # interactive=True,
374
- # )
375
- # weight_type = gr.Dropdown(
376
- # choices=[i.value.name for i in WeightType],
377
- # label="Weights type",
378
- # multiselect=False,
379
- # value="Original",
380
- # interactive=True,
381
- # )
382
- # base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
383
-
384
- # submit_button = gr.Button("Submit Evalulation!")
385
- # submission_result = gr.Markdown()
386
- # submit_button.click(
387
- # add_new_eval,
388
- # [
389
- # model_name_textbox,
390
- # base_model_name_textbox,
391
- # revision_name_textbox,
392
- # precision,
393
- # private,
394
- # weight_type,
395
- # model_type,
396
- # ],
397
- # submission_result,
398
- # )
399
 
400
  with gr.Row():
401
  with gr.Accordion("πŸ“™ Citation", open=False):
 
348
  datatype=EVAL_TYPES,
349
  row_count=5,
350
  )
351
+ with gr.Row():
352
+ gr.Markdown("# βœ‰οΈβœ¨ Submit your model here!", elem_classes="markdown-text")
353
+
354
+ with gr.Row():
355
+ with gr.Column():
356
+ model_name_textbox = gr.Textbox(label="Model name")
357
+ revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
358
+ private = gr.Checkbox(False, label="Private", visible=not IS_PUBLIC)
359
+ model_type = gr.Dropdown(
360
+ choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
361
+ label="Model type",
362
+ multiselect=False,
363
+ value=ModelType.FT.to_str(" : "),
364
+ interactive=True,
365
+ )
366
+
367
+ with gr.Column():
368
+ precision = gr.Dropdown(
369
+ choices=[i.value.name for i in Precision if i != Precision.Unknown],
370
+ label="Precision",
371
+ multiselect=False,
372
+ value="float16",
373
+ interactive=True,
374
+ )
375
+ weight_type = gr.Dropdown(
376
+ choices=[i.value.name for i in WeightType],
377
+ label="Weights type",
378
+ multiselect=False,
379
+ value="Original",
380
+ interactive=True,
381
+ )
382
+ base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
383
+
384
+ submit_button = gr.Button("Submit Evalulation!")
385
+ submission_result = gr.Markdown()
386
+ submit_button.click(
387
+ add_new_eval,
388
+ [
389
+ model_name_textbox,
390
+ base_model_name_textbox,
391
+ revision_name_textbox,
392
+ precision,
393
+ private,
394
+ weight_type,
395
+ model_type,
396
+ ],
397
+ submission_result,
398
+ )
399
 
400
  with gr.Row():
401
  with gr.Accordion("πŸ“™ Citation", open=False):