Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ import openai
|
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
|
6 |
-
|
7 |
|
8 |
#OpenAi call
|
9 |
def gpt3(texts):
|
10 |
openai.api_key = os.environ["Secret"]
|
11 |
response = openai.Completion.create(
|
12 |
-
|
13 |
prompt= texts,
|
14 |
temperature=0,
|
15 |
max_tokens=750,
|
|
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
|
6 |
+
|
7 |
|
8 |
#OpenAi call
|
9 |
def gpt3(texts):
|
10 |
openai.api_key = os.environ["Secret"]
|
11 |
response = openai.Completion.create(
|
12 |
+
engine="code-davinci-002",
|
13 |
prompt= texts,
|
14 |
temperature=0,
|
15 |
max_tokens=750,
|