Spaces:
Runtime error
Runtime error
Commit
·
94d49fb
1
Parent(s):
c7a17ec
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ openai.api_key = os.environ['OPENAI_KEY']
|
|
7 |
|
8 |
def generateStory(theme1, theme2):
|
9 |
|
10 |
-
prompt_text = "Write a children's story
|
11 |
response = openai.Completion.create(
|
12 |
engine="text-davinci-003",
|
13 |
prompt=prompt_text,
|
|
|
7 |
|
8 |
def generateStory(theme1, theme2):
|
9 |
|
10 |
+
prompt_text = "Write a short children's story of less than 500 words, which will be read by a parent to their 4-year-old. Make the language witty and funny, and make the story have an interesting twist. The story has to creatively include the following themes: \"{}\" and \"{}\".".format(theme1,theme2)
|
11 |
response = openai.Completion.create(
|
12 |
engine="text-davinci-003",
|
13 |
prompt=prompt_text,
|