davidlms commited on
Commit
00b5a50
·
verified ·
1 Parent(s): 07b0bd6

Update describepdf/ui.py

Browse files
Files changed (1) hide show
  1. describepdf/ui.py +6 -1
describepdf/ui.py CHANGED
@@ -218,7 +218,12 @@ def create_ui() -> gr.Blocks:
218
  "Adjust settings for the *next* generation. These settings are **not** saved. "
219
  "Defaults are controlled by the `.env` file."
220
  )
221
-
 
 
 
 
 
222
  vlm_model_input = gr.Dropdown(
223
  label="VLM Model",
224
  choices=suggested_vlms,
 
218
  "Adjust settings for the *next* generation. These settings are **not** saved. "
219
  "Defaults are controlled by the `.env` file."
220
  )
221
+ api_key_input = gr.Textbox(
222
+ label="OpenRouter API Key" + (" (set in .env)" if has_env_api_key else ""),
223
+ type="password",
224
+ placeholder="Enter an API key here to override the one in .env" if has_env_api_key else "Enter your OpenRouter API key",
225
+ value=""
226
+ )
227
  vlm_model_input = gr.Dropdown(
228
  label="VLM Model",
229
  choices=suggested_vlms,