Guiyom commited on
Commit
b85c95f
·
1 Parent(s): 8ef2454

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ with gr.Blocks() as demo:
18
  with gr.Row(visible = True) as apicheck:
19
  with gr.Column(scale = 6):
20
  apikey = gr.Textbox(label='Paste here your OpenAI - API key', info='No API key is stored and only you will see it.', lines = 1)
21
- openai.api_key = os.getenv('APICode2') # openai.api_key = apikey
22
  with gr.Column(scale = 1):
23
  useapi = gr.Button("Use this API key")
24
  with gr.Row(visible = False) as fullblock:
 
18
  with gr.Row(visible = True) as apicheck:
19
  with gr.Column(scale = 6):
20
  apikey = gr.Textbox(label='Paste here your OpenAI - API key', info='No API key is stored and only you will see it.', lines = 1)
21
+ openai.api_key = apikey
22
  with gr.Column(scale = 1):
23
  useapi = gr.Button("Use this API key")
24
  with gr.Row(visible = False) as fullblock: