Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
| 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:
|