XufengDuan commited on
Commit
1bde8d8
1 Parent(s): 6cfa9c7

update scripts

Browse files
Files changed (1) hide show
  1. app.py +24 -23
app.py CHANGED
@@ -182,9 +182,10 @@ def filter_queries(query: str, filtered_df: pd.DataFrame) -> pd.DataFrame:
182
  final_df.append(temp_filtered_df)
183
  if len(final_df) > 0:
184
  filtered_df = pd.concat(final_df)
185
- filtered_df = filtered_df.drop_duplicates(
186
- subset=[utils.AutoEvalColumn.model.name, utils.AutoEvalColumn.precision.name, utils.AutoEvalColumn.revision.name]
187
- )
 
188
 
189
  return filtered_df
190
 
@@ -388,22 +389,22 @@ try:
388
  interactive=True,
389
  )
390
 
391
- with gr.Column():
392
- precision = gr.Dropdown(
393
- choices=[i.value.name for i in utils.Precision if i != utils.Precision.Unknown],
394
- label="Precision",
395
- multiselect=False,
396
- value="float16",
397
- interactive=True,
398
- )
399
- weight_type = gr.Dropdown(
400
- choices=[i.value.name for i in utils.WeightType],
401
- label="Weights type",
402
- multiselect=False,
403
- value="Original",
404
- interactive=True,
405
- )
406
- base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
407
 
408
  submit_button = gr.Button("Submit Eval")
409
  submission_result = gr.Markdown()
@@ -411,10 +412,10 @@ try:
411
  submit.add_new_eval,
412
  [
413
  model_name_textbox,
414
- base_model_name_textbox,
415
- revision_name_textbox,
416
- precision,
417
- weight_type,
418
  model_type,
419
  ],
420
  submission_result,
 
182
  final_df.append(temp_filtered_df)
183
  if len(final_df) > 0:
184
  filtered_df = pd.concat(final_df)
185
+ # filtered_df = filtered_df.drop_duplicates(
186
+ # subset=[utils.AutoEvalColumn.model.name, utils.AutoEvalColumn.precision.name, utils.AutoEvalColumn.revision.name]
187
+ # subset=[utils.AutoEvalColumn.model.name]
188
+ # )
189
 
190
  return filtered_df
191
 
 
389
  interactive=True,
390
  )
391
 
392
+ # with gr.Column():
393
+ # precision = gr.Dropdown(
394
+ # choices=[i.value.name for i in utils.Precision if i != utils.Precision.Unknown],
395
+ # label="Precision",
396
+ # multiselect=False,
397
+ # value="float16",
398
+ # interactive=True,
399
+ # )
400
+ # weight_type = gr.Dropdown(
401
+ # choices=[i.value.name for i in utils.WeightType],
402
+ # label="Weights type",
403
+ # multiselect=False,
404
+ # value="Original",
405
+ # interactive=True,
406
+ # )
407
+ # base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
408
 
409
  submit_button = gr.Button("Submit Eval")
410
  submission_result = gr.Markdown()
 
412
  submit.add_new_eval,
413
  [
414
  model_name_textbox,
415
+ # base_model_name_textbox,
416
+ # revision_name_textbox,
417
+ # precision,
418
+ # weight_type,
419
  model_type,
420
  ],
421
  submission_result,