pablo-rf commited on
Commit
a289a30
1 Parent(s): 9f8226f

RAdapt pass_to_input to tasks

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def clear():
75
  gr.update(value=1.3)
76
  )
77
  def pass_to_input(generated_gl):
78
- few_shot_tasks = [example.splitlines()[0] for example in few_shot_prompts_examples]
79
  if generated_gl.splitlines()[0] in few_shot_tasks:
80
  return (
81
  gr.update(value=generated_gl),
 
75
  gr.update(value=1.3)
76
  )
77
  def pass_to_input(generated_gl):
78
+ few_shot_tasks = [example[0].splitlines()[0] for example in few_shot_prompts_examples]
79
  if generated_gl.splitlines()[0] in few_shot_tasks:
80
  return (
81
  gr.update(value=generated_gl),