rodolfoocampo commited on
Commit
192fb82
1 Parent(s): 1031360

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import openai
4
  import os
5
 
6
  def generateStory(theme1, theme2):
7
- openai.api_key = {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 = "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"
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",