albertvillanova HF staff commited on
Commit
651545d
1 Parent(s): 30a0c61

Add additional info to task description

Browse files
Files changed (1) hide show
  1. src/details.py +5 -2
src/details.py CHANGED
@@ -9,10 +9,13 @@ from src.hub import load_details_file
9
 
10
 
11
  def update_task_description_component(task):
 
 
 
12
  return gr.Textbox(
13
- constants.TASK_DESCRIPTIONS.get(task),
14
  label="Task Description",
15
- lines=3,
16
  visible=True,
17
  )
18
 
 
9
 
10
 
11
  def update_task_description_component(task):
12
+ base_description = constants.TASK_DESCRIPTIONS.get(task, "")
13
+ additional_info = "A higher score is a better score."
14
+ description = f"{base_description}\n\n{additional_info}" if base_description else additional_info
15
  return gr.Textbox(
16
+ description,
17
  label="Task Description",
18
+ lines=5,
19
  visible=True,
20
  )
21