Denver Citizen9 commited on
Commit
69e0733
1 Parent(s): 58b2a2f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,14 +12,14 @@ def tell_us_about_yo_momma(category, topic):
12
  prompt = f"Tell us a yo momma joke about her {category} and {topic}"
13
 
14
  completions = openai.Completion.create(
15
- engine=engine,
16
  prompt=prompt,
17
  max_tokens=512,
18
  n=1,
19
  stop=None,
20
  temperature=0.6,
21
  )
22
- message = completions.choices[0].text
23
  return message
24
 
25
  def launch_demo():
 
12
  prompt = f"Tell us a yo momma joke about her {category} and {topic}"
13
 
14
  completions = openai.Completion.create(
15
+ model="text-davinci-003",
16
  prompt=prompt,
17
  max_tokens=512,
18
  n=1,
19
  stop=None,
20
  temperature=0.6,
21
  )
22
+ message = completions.choices[0].text.strip()
23
  return message
24
 
25
  def launch_demo():