Spaces:
Sleeping
Sleeping
lesesuizuo
commited on
Commit
•
cea0ede
1
Parent(s):
c47b77a
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ openai.api_key = ('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')
|
|
6 |
|
7 |
def generate_text(prompt):
|
8 |
completions = openai.Completion.create(
|
9 |
-
engine="text-davinci-
|
10 |
prompt=prompt,
|
11 |
max_tokens=256,
|
12 |
n=1,
|
|
|
6 |
|
7 |
def generate_text(prompt):
|
8 |
completions = openai.Completion.create(
|
9 |
+
engine="text-davinci-003",
|
10 |
prompt=prompt,
|
11 |
max_tokens=256,
|
12 |
n=1,
|