Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,8 +61,7 @@ def compose_system_prompt(targets, additional_sysinfo, feedback, user_message, r
|
|
| 61 |
f"{region_prompt}\n"
|
| 62 |
f"\nThe message you generate should be crafted to appeal specifically to audiences in {region}—"
|
| 63 |
"this regional context provides information about cultural, linguistic, or attitudinal characteristics unique to the region that should inform your tone, examples, references, and persuasive strategy. "
|
| 64 |
-
"Adapt your language and approaches accordingly, integrating regional aspects wherever appropriate.\n"
|
| 65 |
-
"If you are also generating feedback, explicitly include a section that describes how the message was adapted for the {region} regional context."
|
| 66 |
)
|
| 67 |
|
| 68 |
prompt += (
|
|
@@ -162,6 +161,19 @@ target_options = get_target_options()
|
|
| 162 |
model_choices = ["gpt-5","gpt-5-mini"]
|
| 163 |
|
| 164 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
.gradio-container {
|
| 166 |
max-width: 1280px !important;
|
| 167 |
margin-left: auto !important;
|
|
|
|
| 61 |
f"{region_prompt}\n"
|
| 62 |
f"\nThe message you generate should be crafted to appeal specifically to audiences in {region}—"
|
| 63 |
"this regional context provides information about cultural, linguistic, or attitudinal characteristics unique to the region that should inform your tone, examples, references, and persuasive strategy. "
|
| 64 |
+
"Adapt your language and approaches accordingly, integrating regional aspects wherever appropriate. Incorporate it into your general feedback.\n"
|
|
|
|
| 65 |
)
|
| 66 |
|
| 67 |
prompt += (
|
|
|
|
| 161 |
model_choices = ["gpt-5","gpt-5-mini"]
|
| 162 |
|
| 163 |
custom_css = """
|
| 164 |
+
/* Ensure page and Gradio container are scrollable */
|
| 165 |
+
html, body {
|
| 166 |
+
height: auto !important;
|
| 167 |
+
overflow-y: auto !important;
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
/* Let the main Gradio container scroll instead of trapping wheel events */
|
| 171 |
+
#root, .gradio-container {
|
| 172 |
+
height: auto !important;
|
| 173 |
+
overflow-y: auto !important;
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
/* Your original sizing */
|
| 177 |
.gradio-container {
|
| 178 |
max-width: 1280px !important;
|
| 179 |
margin-left: auto !important;
|