mgyigit commited on
Commit
d280876
·
verified ·
1 Parent(s): 72f465f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -23
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="Model name",
153
  )
154
  revision_name_textbox = gr.Textbox(
155
- label="Revision Model Name",
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
- human_file = gr.components.File(label="Click to Upload the representation file (csv) for Human dataset", file_count="single", type='filepath')
195
- skempi_file = gr.components.File(label="Click to Upload the representation file (csv) for SKEMPI dataset", file_count="single", type='filepath')
196
 
197
- submit_button = gr.Button("Submit Eval")
198
- submission_result = gr.Markdown()
199
- submit_button.click(
200
- add_new_eval,
201
- inputs=[
202
- human_file,
203
- skempi_file,
204
- model_name_textbox,
205
- revision_name_textbox,
206
- benchmark_types,
207
- similarity_tasks,
208
- function_prediction_aspect,
209
- function_dataset,
210
- family_prediction_dataset,
211
- save_checkbox,
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)