Spaces:
Runtime error
Runtime error
Denver Citizen9
commited on
Commit
•
6fd8c38
1
Parent(s):
69e0733
ref key
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ def tell_us_about_yo_momma(category, topic):
|
|
7 |
openAI_key = os.getenv('openAI_key')
|
8 |
if openAI_key.strip()=='':
|
9 |
return '[ERROR]: Please enter you Open AI Key. Get your key here : https://platform.openai.com/account/api-keys'
|
|
|
10 |
|
11 |
prompt = ""
|
12 |
prompt = f"Tell us a yo momma joke about her {category} and {topic}"
|
|
|
7 |
openAI_key = os.getenv('openAI_key')
|
8 |
if openAI_key.strip()=='':
|
9 |
return '[ERROR]: Please enter you Open AI Key. Get your key here : https://platform.openai.com/account/api-keys'
|
10 |
+
openai.api_key = openAI_key
|
11 |
|
12 |
prompt = ""
|
13 |
prompt = f"Tell us a yo momma joke about her {category} and {topic}"
|