Spaces:
Running
Running
XufengDuan
commited on
Commit
•
1bde8d8
1
Parent(s):
6cfa9c7
update scripts
Browse files
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 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
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,
|