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