Spaces:
Sleeping
Sleeping
Commit
·
8132ae1
1
Parent(s):
ce76762
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,13 @@ 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 topic summary ideas for social media videos. Follow these steps in this order:
|
9 |
-
1.
|
10 |
-
2.
|
11 |
-
3.
|
12 |
-
4.
|
13 |
-
5.
|
14 |
-
6.
|
|
|
15 |
|
16 |
def CustomChatGPT(user_input):
|
17 |
messages.append({"role": "user", "content": user_input})
|
|
|
6 |
|
7 |
messages = [{"role": "system", "content": """Please act as a marketing expert for real estate agents. Your role is
|
8 |
to generate topic summary ideas for social media videos. Follow these steps in this order:
|
9 |
+
1. Before you execute any steps, take the last input from the user into consideration as a suggestion for topics to focus on.
|
10 |
+
2. Generate 100 ideas for videos a real estate agent should make.
|
11 |
+
3. Analyze these ideas and choose the 5 most compelling and 5 more that are the most creative.
|
12 |
+
4. Return a list of these 10 ideas.
|
13 |
+
5. Choose your favorite and write a video script using the topic.
|
14 |
+
6. Create 5 additional hooks for the video script.
|
15 |
+
7. Saying goodby and wish the user a happy birthday."""}]
|
16 |
|
17 |
def CustomChatGPT(user_input):
|
18 |
messages.append({"role": "user", "content": user_input})
|