kwabs22
commited on
Commit
•
8bf4dc2
1
Parent(s):
bebaabc
reorder UI
Browse files
app.py
CHANGED
@@ -118,21 +118,22 @@ with gr.Blocks() as iface:
|
|
118 |
|
119 |
gr.HTML("Any standard way of thinking / Repetitive idea / rule of thumb / advice can be turned into a button (In a timeline?)")
|
120 |
|
|
|
|
|
|
|
|
|
|
|
121 |
with gr.Accordion("Random Ideas"):
|
122 |
-
with gr.Group():
|
123 |
-
gr.HTML("Test for wrapping generator (Instead of buttons tabs and dropdowns?)")
|
124 |
-
MainOutput = gr.TextArea(placeholder='Output will show here')
|
125 |
-
CustomButtonInput = gr.TextArea(lines=1, placeholder='Prompt goes here')
|
126 |
-
|
127 |
# Dynamically create buttons and assign actions
|
128 |
for index, (prompt, _) in enumerate(CustomPrompts):
|
129 |
button = gr.Button(prompt)
|
130 |
button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)
|
131 |
|
132 |
-
with gr.Accordion("General Product based"):
|
133 |
with gr.Group():
|
134 |
# Dynamically create buttons and assign actions
|
135 |
-
for index, (prompt, _) in enumerate(
|
136 |
button = gr.Button(prompt)
|
137 |
button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)
|
138 |
|
|
|
118 |
|
119 |
gr.HTML("Any standard way of thinking / Repetitive idea / rule of thumb / advice can be turned into a button (In a timeline?)")
|
120 |
|
121 |
+
|
122 |
+
gr.HTML("Test for wrapping generator (Instead of buttons tabs and dropdowns?)")
|
123 |
+
MainOutput = gr.TextArea(placeholder='Output will show here')
|
124 |
+
CustomButtonInput = gr.TextArea(lines=1, placeholder='Prompt goes here')
|
125 |
+
|
126 |
with gr.Accordion("Random Ideas"):
|
127 |
+
with gr.Group():
|
|
|
|
|
|
|
|
|
128 |
# Dynamically create buttons and assign actions
|
129 |
for index, (prompt, _) in enumerate(CustomPrompts):
|
130 |
button = gr.Button(prompt)
|
131 |
button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)
|
132 |
|
133 |
+
with gr.Accordion("General Product based", open=False):
|
134 |
with gr.Group():
|
135 |
# Dynamically create buttons and assign actions
|
136 |
+
for index, (prompt, _) in enumerate(BusinessPrompts):
|
137 |
button = gr.Button(prompt)
|
138 |
button.click(custom_generate_response, inputs=[CustomButtonInput, gr.State(index)], outputs=MainOutput)
|
139 |
|