OrganizingForChange commited on
Commit
cb1918e
·
verified ·
1 Parent(s): 8137d03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -20
app.py CHANGED
@@ -186,26 +186,27 @@ This tool was created by [Organizing for Change](https://www.organizingforchange
186
  )
187
 
188
  # --- Main tool UI ---
189
- with gr.Row():
190
- region = gr.Dropdown(
191
- choices=region_options,
192
- value=region_options[0] if region_options else None,
193
- label="Region",
194
- info="Select the primary region for this message. The system will use regional context and characteristics as part of the prompt."
195
- )
196
- with gr.Row():
197
- target = gr.Checkboxgroup(
198
- choices=target_options,
199
- label="Target Audience Segments",
200
- info="Select one or more intended audience segments. Your message will be adapted for all selected groups together.",
201
- value=[], # default: nothing checked
202
- )
203
- with gr.Row():
204
- feedback = gr.Checkbox(
205
- label="Request Feedback from LLM?",
206
- info="If checked, the LLM will provide additional feedback and suggestions about your message after rewriting it.",
207
- value=True # This makes it checked by default!
208
- )
 
209
 
210
  additional_sysinfo = gr.Textbox(
211
  lines=3,
 
186
  )
187
 
188
  # --- Main tool UI ---
189
+ with gr.Group():
190
+ with gr.Row():
191
+ region = gr.Dropdown(
192
+ choices=region_options,
193
+ value=region_options[0] if region_options else None,
194
+ label="Region",
195
+ info="Select the primary region for this message. The system will use regional context and characteristics as part of the prompt."
196
+ )
197
+ with gr.Row():
198
+ target = gr.Checkboxgroup(
199
+ choices=target_options,
200
+ label="Target Audience Segments",
201
+ info="Select one or more intended audience segments. Your message will be adapted for all selected groups together.",
202
+ value=[], # default: nothing checked
203
+ )
204
+ with gr.Row():
205
+ feedback = gr.Checkbox(
206
+ label="Request Feedback from LLM?",
207
+ info="If checked, the LLM will provide additional feedback and suggestions about your message after rewriting it.",
208
+ value=True # This makes it checked by default!
209
+ )
210
 
211
  additional_sysinfo = gr.Textbox(
212
  lines=3,