Sealical commited on
Commit
3f70be6
·
1 Parent(s): d96e9f3

update space

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -265,19 +265,19 @@ def init_leaderboard(dataframe):
265
  hide_columns=[c.name for c in COLUMNS if c.hidden],
266
  filter_columns=[
267
  ColumnFilter("model_type", type="checkboxgroup", label="Model types"),
268
- ColumnFilter(
269
- "params",
270
- type="slider",
271
- min=0.01,
272
- max=1500,
273
- label="Select the number of parameters (B)",
274
- ),
275
  ],
276
  interactive=False,
277
  )
278
 
279
  # Submission form handling
280
- def process_submission(model_name, model_type, params, license_type, submission_link):
281
  # This would be implemented to handle actual submission processing
282
  return f"Thank you for submitting {model_name}! Your submission will be reviewed and added to the leaderboard once verified."
283
 
@@ -330,7 +330,7 @@ def create_demo():
330
  label="Model Type",
331
  multiselect=False,
332
  )
333
- params_input = gr.Number(label="Parameters (billions)")
334
 
335
  with gr.Column():
336
  license_input = gr.Textbox(label="License")
@@ -341,7 +341,7 @@ def create_demo():
341
 
342
  submit_button.click(
343
  process_submission,
344
- [model_name_input, model_type_input, params_input, license_input, submission_link_input],
345
  submission_result,
346
  )
347
 
 
265
  hide_columns=[c.name for c in COLUMNS if c.hidden],
266
  filter_columns=[
267
  ColumnFilter("model_type", type="checkboxgroup", label="Model types"),
268
+ # ColumnFilter(
269
+ # "params",
270
+ # type="slider",
271
+ # min=0.01,
272
+ # max=1500,
273
+ # label="Select the number of parameters (B)",
274
+ # ),
275
  ],
276
  interactive=False,
277
  )
278
 
279
  # Submission form handling
280
+ def process_submission(model_name, model_type, license_type, submission_link):
281
  # This would be implemented to handle actual submission processing
282
  return f"Thank you for submitting {model_name}! Your submission will be reviewed and added to the leaderboard once verified."
283
 
 
330
  label="Model Type",
331
  multiselect=False,
332
  )
333
+ #params_input = gr.Number(label="Parameters (billions)")
334
 
335
  with gr.Column():
336
  license_input = gr.Textbox(label="License")
 
341
 
342
  submit_button.click(
343
  process_submission,
344
+ [model_name_input, model_type_input, license_input, submission_link_input],
345
  submission_result,
346
  )
347