Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Remove unnecessary update_tasks_component param
Browse files
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(
|
| 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(
|