Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,11 +20,11 @@ def create(thema):
|
|
20 |
poem = openai.Completion.create(
|
21 |
model="text-davinci-002",
|
22 |
prompt=prompt_start + thema +':',
|
23 |
-
temperature=0.
|
24 |
-
max_tokens=
|
25 |
-
top_p=
|
26 |
-
frequency_penalty=
|
27 |
-
presence_penalty=
|
28 |
)
|
29 |
gedicht = poem['choices'][0]['text']
|
30 |
return gedicht
|
|
|
20 |
poem = openai.Completion.create(
|
21 |
model="text-davinci-002",
|
22 |
prompt=prompt_start + thema +':',
|
23 |
+
temperature=0.7,
|
24 |
+
max_tokens=200,
|
25 |
+
top_p=0.8,
|
26 |
+
frequency_penalty=1,
|
27 |
+
presence_penalty=1
|
28 |
)
|
29 |
gedicht = poem['choices'][0]['text']
|
30 |
return gedicht
|