albertvillanova HF staff commited on
Commit
3782698
1 Parent(s): 3caeacd

Remove unnecessary update_tasks_component param

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -152,7 +152,7 @@ def display_tab(tab, df, task):
152
  return df.to_html()
153
 
154
 
155
- def update_tasks_component(task):
156
  return gr.Radio(
157
  ["All"] + list(TASKS.values()),
158
  label="Tasks",
@@ -274,7 +274,6 @@ with gr.Blocks(fill_height=True) as demo:
274
  outputs=[results, configs],
275
  ).then(
276
  fn=update_tasks_component,
277
- inputs=task,
278
  outputs=task,
279
  )
280
  task.change(
 
152
  return df.to_html()
153
 
154
 
155
+ def update_tasks_component():
156
  return gr.Radio(
157
  ["All"] + list(TASKS.values()),
158
  label="Tasks",
 
274
  outputs=[results, configs],
275
  ).then(
276
  fn=update_tasks_component,
 
277
  outputs=task,
278
  )
279
  task.change(