Spaces:
Running
Running
Update pipeline_utils.py
Browse files- pipeline_utils.py +3 -1
pipeline_utils.py
CHANGED
|
@@ -10,7 +10,9 @@ def review_training_choices(choice):
|
|
| 10 |
else:
|
| 11 |
return gr.Row(visible=False)
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
def handle_task_change(task):
|
| 15 |
visibility = task == "question-answering"
|
| 16 |
models = tasks_config[task]["config"]["models"]
|
|
|
|
| 10 |
else:
|
| 11 |
return gr.Row(visible=False)
|
| 12 |
|
| 13 |
+
def task_dropdown_choices():
|
| 14 |
+
return [(task["name"], task_id)
|
| 15 |
+
for task_id, task in tasks_config.items()]
|
| 16 |
def handle_task_change(task):
|
| 17 |
visibility = task == "question-answering"
|
| 18 |
models = tasks_config[task]["config"]["models"]
|