Spaces:
Runtime error
Runtime error
Denver Citizen9 commited on
Commit ·
69e0733
1
Parent(s): 58b2a2f
let's go
Browse files
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 |
-
|
| 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():
|