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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
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 (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,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
- 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():
 
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():