Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,10 +150,10 @@ This tool was created by [Organizing for Change](https://www.organizingforchange
|
|
| 150 |
)
|
| 151 |
|
| 152 |
# --- Model/Settings/API Key panel (Wrapped together!) ---
|
| 153 |
-
with gr.Group():
|
| 154 |
-
gr.Markdown("### LLM Model & API Settings")
|
| 155 |
with gr.Row():
|
| 156 |
with gr.Column():
|
|
|
|
| 157 |
model = gr.Dropdown(
|
| 158 |
choices=model_choices,
|
| 159 |
value="gpt-4.1",
|
|
@@ -178,13 +178,13 @@ This tool was created by [Organizing for Change](https://www.organizingforchange
|
|
| 178 |
label="Top-p",
|
| 179 |
info="Controls nucleus sampling; typical values are 0.8 (diverse) to 1 (default)."
|
| 180 |
)
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
|
| 189 |
# --- Main tool UI ---
|
| 190 |
with gr.Row():
|
|
|
|
| 150 |
)
|
| 151 |
|
| 152 |
# --- Model/Settings/API Key panel (Wrapped together!) ---
|
| 153 |
+
with gr.Group(elem_id="settings-panel"):
|
|
|
|
| 154 |
with gr.Row():
|
| 155 |
with gr.Column():
|
| 156 |
+
gr.Label("Model & API Settings") # Subtle section label, not a headline
|
| 157 |
model = gr.Dropdown(
|
| 158 |
choices=model_choices,
|
| 159 |
value="gpt-4.1",
|
|
|
|
| 178 |
label="Top-p",
|
| 179 |
info="Controls nucleus sampling; typical values are 0.8 (diverse) to 1 (default)."
|
| 180 |
)
|
| 181 |
+
with gr.Column():
|
| 182 |
+
api_key = gr.Textbox(
|
| 183 |
+
type="password",
|
| 184 |
+
placeholder="Paste your OpenAI API key here...",
|
| 185 |
+
label="OpenAI API Key",
|
| 186 |
+
info="Enter the key you received, or get one at https://platform.openai.com/api-keys"
|
| 187 |
+
)
|
| 188 |
|
| 189 |
# --- Main tool UI ---
|
| 190 |
with gr.Row():
|