Spaces:
Build error
Build error
kwabs22 commited on
Commit ·
8bf4dc2
1
Parent(s): bebaabc
reorder UI
Browse files117 unmodified lines118119120121122123124125126127128129130131132133134135136137138117 unmodified linesgr.HTML("Any standard way of thinking / Repetitive idea / rule of thumb / advice can be turned into a button (In a timeline?)")with gr.Accordion("Random Ideas"):with gr.Group():gr.HTML("Test for wrapping generator (Instead of buttons tabs and dropdowns?)")MainOutput = gr.TextArea(placeholder='Output will show here')CustomButtonInput = gr.TextArea(lines=1, placeholder='Prompt goes here')# Dynamically create buttons and assign actionsfor index, (prompt, _) in enumerate(CustomPrompts):button = gr.Button(prompt)button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)with gr.Accordion("General Product based"):with gr.Group():# Dynamically create buttons and assign actionsfor index, (prompt, _) in enumerate(CustomPrompts):button = gr.Button(prompt)button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)117 unmodified lines118119120121122123124125126127128129130131132133134135136137138139117 unmodified linesgr.HTML("Any standard way of thinking / Repetitive idea / rule of thumb / advice can be turned into a button (In a timeline?)")gr.HTML("Test for wrapping generator (Instead of buttons tabs and dropdowns?)")MainOutput = gr.TextArea(placeholder='Output will show here')CustomButtonInput = gr.TextArea(lines=1, placeholder='Prompt goes here')with gr.Accordion("Random Ideas"):with gr.Group():# Dynamically create buttons and assign actionsfor index, (prompt, _) in enumerate(CustomPrompts):button = gr.Button(prompt)button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)with gr.Accordion("General Product based", open=False):with gr.Group():# Dynamically create buttons and assign actionsfor index, (prompt, _) in enumerate(BusinessPrompts):button = gr.Button(prompt)button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)
app.py+8-7