Update app.py
Browse files
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=
|
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",
|