Spaces:
Sleeping
Sleeping
Commit
·
0dcb7e1
1
Parent(s):
9cf833b
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ api_k = 'sk'
|
|
8 |
with gr.Blocks() as myface:
|
9 |
with gr.Row():
|
10 |
api_k = gr.Textbox(label="Ключ OpenAI API", type="password")
|
|
|
11 |
|
12 |
-
openai.api_key = api_k
|
13 |
|
14 |
def openai_chat(prompt):
|
15 |
completions = openai.Completion.create(
|
|
|
8 |
with gr.Blocks() as myface:
|
9 |
with gr.Row():
|
10 |
api_k = gr.Textbox(label="Ключ OpenAI API", type="password")
|
11 |
+
openai.api_key = api_k
|
12 |
|
|
|
13 |
|
14 |
def openai_chat(prompt):
|
15 |
completions = openai.Completion.create(
|