Spaces:
Sleeping
Sleeping
RAdapt pass_to_input to tasks
Browse files
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),
|