Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,10 +3,10 @@ import openai
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
|
| 6 |
-
key
|
| 7 |
|
| 8 |
#OpenAi call
|
| 9 |
def gpt3(texts):
|
|
|
|
| 10 |
|
| 11 |
response = openai.Completion.create(
|
| 12 |
engine="code-davinci-002",
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
|
|
|
|
| 6 |
|
| 7 |
#OpenAi call
|
| 8 |
def gpt3(texts):
|
| 9 |
+
openai.api_key = SecretKey
|
| 10 |
|
| 11 |
response = openai.Completion.create(
|
| 12 |
engine="code-davinci-002",
|