Spaces:
Sleeping
Sleeping
Commit
·
e112f57
1
Parent(s):
5afe7da
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,13 @@ import os
|
|
5 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
6 |
|
7 |
messages = [{"role": "system", "content": """Please act as a marketing expert for real estate agents. Your role is
|
8 |
-
to generate ideas for videos.
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
def CustomChatGPT(user_input):
|
13 |
messages.append({"role": "user", "content": user_input})
|
|
|
5 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
6 |
|
7 |
messages = [{"role": "system", "content": """Please act as a marketing expert for real estate agents. Your role is
|
8 |
+
to generate ideas for videos. Follow these steps in this order:
|
9 |
+
1. Consider the additional input from the user and generate 100 ideas for videos a real estate agent should make.
|
10 |
+
2. Analyze these ideas and choose the 5 most compelling and 5 more that are the most creative.
|
11 |
+
3. Return a list of these 10 ideas.
|
12 |
+
4. Choose your favorite and write a video script using the topic.
|
13 |
+
5. Create 5 additional hooks for the video script.
|
14 |
+
6. Saying goodby and wish the user a happy birthday."""}]
|
15 |
|
16 |
def CustomChatGPT(user_input):
|
17 |
messages.append({"role": "user", "content": user_input})
|