Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 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,
|