kwabs22
commited on
Commit
·
d52d19e
1
Parent(s):
098fa9f
wrong function for buttons
Browse files
app.py
CHANGED
@@ -187,11 +187,11 @@ with gr.Blocks() as iface:
|
|
187 |
# button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index), gr.State(CreativityPrompts)], outputs=MainOutput)
|
188 |
|
189 |
for category_name, category_prompts in Allprompts.items():
|
190 |
-
with gr.Accordion(f"General {category_name} Pattern based"):
|
191 |
with gr.Group():
|
192 |
for index, (prompt, _) in enumerate(category_prompts):
|
193 |
button = gr.Button(prompt)
|
194 |
-
button.click(
|
195 |
|
196 |
|
197 |
with gr.Tab("Workflow Brainstom"):
|
|
|
187 |
# button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index), gr.State(CreativityPrompts)], outputs=MainOutput)
|
188 |
|
189 |
for category_name, category_prompts in Allprompts.items():
|
190 |
+
with gr.Accordion(f"General {category_name} Pattern based", open=False):
|
191 |
with gr.Group():
|
192 |
for index, (prompt, _) in enumerate(category_prompts):
|
193 |
button = gr.Button(prompt)
|
194 |
+
button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index), gr.State(category_name)], outputs=MainOutput)
|
195 |
|
196 |
|
197 |
with gr.Tab("Workflow Brainstom"):
|