Dagfinn1962 commited on
Commit
93d7f26
1 Parent(s): 9bd01da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -146,8 +146,8 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
146
  with gr.Column():
147
  openai_key = gr.Textbox(
148
  label="OpenAI Key",
149
- api_key=os.environ.get('API_KEY'),
150
- value=os.environ.get('API_KEY'), # Use environment variable value as initial value
151
  placeholder="",
152
  type="text",
153
  info="",
 
146
  with gr.Column():
147
  openai_key = gr.Textbox(
148
  label="OpenAI Key",
149
+ api_key="os.environ.get('API_KEY')",
150
+ value="os.environ.get('API_KEY')", # Use environment variable value as initial value
151
  placeholder="",
152
  type="text",
153
  info="",