Spaces:
Runtime error
Runtime error
rodolfoocampo
commited on
Commit
•
192fb82
1
Parent(s):
1031360
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import openai
|
|
4 |
import os
|
5 |
|
6 |
def generateStory(theme1, theme2):
|
7 |
-
openai.api_key =
|
8 |
prompt_text = "Write a children's story about \"{}\" and \"{}\".".format(theme1,theme2)
|
9 |
response = openai.Completion.create(
|
10 |
engine="text-davinci-003",
|
@@ -73,7 +73,7 @@ def illustratedStory(story):
|
|
73 |
return image_url
|
74 |
|
75 |
def continueStory(inputStory):
|
76 |
-
openai.api_key =
|
77 |
prompt_text = inputStory
|
78 |
response = openai.Completion.create(
|
79 |
engine="text-davinci-002",
|
|
|
4 |
import os
|
5 |
|
6 |
def generateStory(theme1, theme2):
|
7 |
+
openai.api_key = OPENAI_KEY
|
8 |
prompt_text = "Write a children's story about \"{}\" and \"{}\".".format(theme1,theme2)
|
9 |
response = openai.Completion.create(
|
10 |
engine="text-davinci-003",
|
|
|
73 |
return image_url
|
74 |
|
75 |
def continueStory(inputStory):
|
76 |
+
openai.api_key = OPENAI_KEY
|
77 |
prompt_text = inputStory
|
78 |
response = openai.Completion.create(
|
79 |
engine="text-davinci-002",
|