Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,10 +149,10 @@ with block:
|
|
| 149 |
with gr.Row():
|
| 150 |
with gr.Column():
|
| 151 |
model_name_textbox = gr.Textbox(
|
| 152 |
-
label="
|
| 153 |
)
|
| 154 |
revision_name_textbox = gr.Textbox(
|
| 155 |
-
label="Revision
|
| 156 |
)
|
| 157 |
|
| 158 |
benchmark_types = gr.CheckboxGroup(
|
|
@@ -178,7 +178,6 @@ with block:
|
|
| 178 |
interactive=True,
|
| 179 |
)
|
| 180 |
|
| 181 |
-
|
| 182 |
function_dataset = gr.Textbox(
|
| 183 |
label="Function Prediction Datasets",
|
| 184 |
visible=False,
|
|
@@ -190,27 +189,27 @@ with block:
|
|
| 190 |
value=True
|
| 191 |
)
|
| 192 |
|
| 193 |
-
with gr.Column():
|
| 194 |
-
|
| 195 |
-
|
| 196 |
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
|
| 215 |
def refresh_data():
|
| 216 |
value = get_baseline_df(method_names, metric_names)
|
|
|
|
| 149 |
with gr.Row():
|
| 150 |
with gr.Column():
|
| 151 |
model_name_textbox = gr.Textbox(
|
| 152 |
+
label="Method name",
|
| 153 |
)
|
| 154 |
revision_name_textbox = gr.Textbox(
|
| 155 |
+
label="Revision Method Name",
|
| 156 |
)
|
| 157 |
|
| 158 |
benchmark_types = gr.CheckboxGroup(
|
|
|
|
| 178 |
interactive=True,
|
| 179 |
)
|
| 180 |
|
|
|
|
| 181 |
function_dataset = gr.Textbox(
|
| 182 |
label="Function Prediction Datasets",
|
| 183 |
visible=False,
|
|
|
|
| 189 |
value=True
|
| 190 |
)
|
| 191 |
|
| 192 |
+
#with gr.Column():
|
| 193 |
+
human_file = gr.components.File(label="The representation file (csv) for Human dataset", file_count="single", type='filepath')
|
| 194 |
+
skempi_file = gr.components.File(label="The representation file (csv) for SKEMPI dataset", file_count="single", type='filepath')
|
| 195 |
|
| 196 |
+
submit_button = gr.Button("Submit Eval")
|
| 197 |
+
submission_result = gr.Markdown()
|
| 198 |
+
submit_button.click(
|
| 199 |
+
add_new_eval,
|
| 200 |
+
inputs=[
|
| 201 |
+
human_file,
|
| 202 |
+
skempi_file,
|
| 203 |
+
model_name_textbox,
|
| 204 |
+
revision_name_textbox,
|
| 205 |
+
benchmark_types,
|
| 206 |
+
similarity_tasks,
|
| 207 |
+
function_prediction_aspect,
|
| 208 |
+
function_dataset,
|
| 209 |
+
family_prediction_dataset,
|
| 210 |
+
save_checkbox,
|
| 211 |
+
],
|
| 212 |
+
)
|
| 213 |
|
| 214 |
def refresh_data():
|
| 215 |
value = get_baseline_df(method_names, metric_names)
|