mjbuehler commited on
Commit
baa256c
1 Parent(s): 23ccff6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -389,8 +389,9 @@ with gr.Blocks(title="PDF to Audio", css="""
389
 
390
  openai_api_key = gr.Textbox(
391
  label="OpenAI API Key",
392
- visible=not bool(os.getenv("OPENAI_API_KEY")),
393
  placeholder="Enter your OpenAI API Key here...",
 
394
  )
395
  text_model = gr.Dropdown(
396
  label="Text Generation Model",
 
389
 
390
  openai_api_key = gr.Textbox(
391
  label="OpenAI API Key",
392
+ visible=True, # Always show the API key field
393
  placeholder="Enter your OpenAI API Key here...",
394
+ type="password" # Hide the API key input
395
  )
396
  text_model = gr.Dropdown(
397
  label="Text Generation Model",