Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def generate_story(character1, character2, character3, character4, localizer, ag
|
|
| 14 |
A story about {character1}, {character2}, {character3}, and {character4}, set in {localizer}.
|
| 15 |
The story is intended for a child aged {agefor}.' \
|
| 16 |
As much as possible use words that are in this list: {wordstouse}.
|
| 17 |
-
Make it fun and
|
| 18 |
The story should be taught in {language}!
|
| 19 |
"""
|
| 20 |
|
|
@@ -24,7 +24,7 @@ The story should be taught in {language}!
|
|
| 24 |
response = openai.ChatCompletion.create(
|
| 25 |
model="gpt-3.5-turbo",
|
| 26 |
messages=inject,
|
| 27 |
-
temperature=0.
|
| 28 |
max_tokens=1000,
|
| 29 |
top_p=1,
|
| 30 |
n=1,
|
|
|
|
| 14 |
A story about {character1}, {character2}, {character3}, and {character4}, set in {localizer}.
|
| 15 |
The story is intended for a child aged {agefor}.' \
|
| 16 |
As much as possible use words that are in this list: {wordstouse}.
|
| 17 |
+
Make it fun and exciting with high burstiness and perplexity. Nobody wants a boring story :)
|
| 18 |
The story should be taught in {language}!
|
| 19 |
"""
|
| 20 |
|
|
|
|
| 24 |
response = openai.ChatCompletion.create(
|
| 25 |
model="gpt-3.5-turbo",
|
| 26 |
messages=inject,
|
| 27 |
+
temperature=0.8,
|
| 28 |
max_tokens=1000,
|
| 29 |
top_p=1,
|
| 30 |
n=1,
|