bizvideoschool commited on
Commit
0fc4f4b
1 Parent(s): e1649a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -5,7 +5,10 @@ import os
5
  # Ensure your OpenAI API key is set in your environment variables
6
  openai.api_key = os.environ["OPENAI_API_KEY"]
7
 
8
- initial_messages = [{"role": "system", "content": "Please act as a marketing expert for real estate agents. Your role is to generate topic summary ideas for social media videos."}]
 
 
 
9
 
10
  def call_openai_api(messages):
11
  return openai.ChatCompletion.create(
@@ -33,7 +36,7 @@ with col1:
33
  generate_button = st.button('Generate Ideas')
34
 
35
  with col2:
36
- st.markdown("### Your Video Ideas Appear Here ⬇️")
37
  if generate_button:
38
  messages = initial_messages.copy()
39
  reply, _ = CustomChatGPT(user_input, messages)
 
5
  # Ensure your OpenAI API key is set in your environment variables
6
  openai.api_key = os.environ["OPENAI_API_KEY"]
7
 
8
+ initial_messages = [{"role": "system", "content": """Please act as a marketing expert for real estate agents. Your role is to generate topic summary ideas for social media videos. Follow these steps in this order:
9
+ 1. Before you execute any steps, consider the last input from the user as a suggestion for the types of topics you should create if they submit one. If they don't submit a topic idea then assume they would like ideas for marketing videos for a real estate agent.
10
+ 2. Generate 100 total ideas for videos a real estate agent should make. Some should be ideas for simple marketing videos, creative social media content, educational videos, and a few that are outside the box.
11
+ Reply with the 10 overall best ideas. Include a short, up to 2 sentence long description of each idea. Do not return all 100 ideas."""}]
12
 
13
  def call_openai_api(messages):
14
  return openai.ChatCompletion.create(
 
36
  generate_button = st.button('Generate Ideas')
37
 
38
  with col2:
39
+ st.markdown("### Your Video Ideas ⬇️")
40
  if generate_button:
41
  messages = initial_messages.copy()
42
  reply, _ = CustomChatGPT(user_input, messages)