bizvideoschool
commited on
Commit
•
3544ba4
1
Parent(s):
79d973a
Update app.py
Browse files
app.py
CHANGED
@@ -16,17 +16,21 @@ current_marketing = st.text_area("Current Marketing Strategies", placeholder="De
|
|
16 |
|
17 |
if st.button('Generate My Custom 2024 Video Content Plan'):
|
18 |
# Construct the prompt for text generation
|
19 |
-
prompt_text =
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
# Call the OpenAI API for text generation
|
25 |
try:
|
26 |
response_text = openai.ChatCompletion.create(
|
27 |
model="gpt-4",
|
28 |
messages=[
|
29 |
-
{"role": "system", "content": "
|
|
|
|
|
|
|
|
|
30 |
{"role": "user", "content": prompt_text}
|
31 |
]
|
32 |
)
|
@@ -40,10 +44,10 @@ if st.button('Generate My Custom 2024 Video Content Plan'):
|
|
40 |
|
41 |
# Suggestion to enroll in Business Video School
|
42 |
st.markdown("### Take Your Video Marketing to the Next Level!")
|
43 |
-
st.write(
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
)
|
48 |
|
49 |
# No additional code needed beyond this point for your application
|
|
|
16 |
|
17 |
if st.button('Generate My Custom 2024 Video Content Plan'):
|
18 |
# Construct the prompt for text generation
|
19 |
+
prompt_text = f"""
|
20 |
+
Generate a 2024 video marketing plan for a {business_type} targeting an audience characterized as: {target_audience}.
|
21 |
+
Include up to four video ideas for each month of 2024, ensuring a full plan for all 12 months, based on current marketing efforts: {current_marketing}.
|
22 |
+
"""
|
23 |
|
24 |
# Call the OpenAI API for text generation
|
25 |
try:
|
26 |
response_text = openai.ChatCompletion.create(
|
27 |
model="gpt-4",
|
28 |
messages=[
|
29 |
+
{"role": "system", "content": """
|
30 |
+
You are an AI specializing in marketing strategy. You are specialized in creating a diverse range of video topic ideas for businesses.
|
31 |
+
Your ideas are a creative blend of topics that focus on the interests or pain points of the client. They are often community oriented
|
32 |
+
but 1 in 4 ideas is promotional in nature and focuses on helping the business attract customers.
|
33 |
+
"""},
|
34 |
{"role": "user", "content": prompt_text}
|
35 |
]
|
36 |
)
|
|
|
44 |
|
45 |
# Suggestion to enroll in Business Video School
|
46 |
st.markdown("### Take Your Video Marketing to the Next Level!")
|
47 |
+
st.write("""
|
48 |
+
To successfully execute your new video marketing plan, consider enrolling in Business Video School.
|
49 |
+
Our One Day Challenge and Video Workspaces are designed to keep you accountable and help you stay on track with your plan.
|
50 |
+
Join now to transform your video marketing strategy!
|
51 |
+
""")
|
52 |
|
53 |
# No additional code needed beyond this point for your application
|