bizvideoschool commited on
Commit
8ab5ef1
·
1 Parent(s): 41ca7d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -7,11 +7,15 @@ openai.api_key = os.environ["OPENAI_API_KEY"]
7
  initial_messages = [{"role": "system", "content": """Please create engaging and informative video scripts for real
8
  estate agents to use on social media. The target audience is potential homebuyers and sellers.
9
  The tone should be professional and friendly, with a focus on building trust and showcasing the agent's expertise.
10
- Please incorporate a strong call-to-action at the end of each script,
11
- encouraging viewers to contact the agent for more information or assistance.
12
- Write only the words the agent should read into the camera. Once you create the script, analyze it and determine 5
13
- engaging hooks that could replace the first sentence. Analyze those 5 hooks, pick the best one, and replace the
14
- existing hook in the script you wrote with the new one. Deliver the script with the new hook included."""}]
 
 
 
 
15
 
16
  def CustomChatGPT(user_input, messages):
17
  messages.append({"role": "user", "content": user_input})
 
7
  initial_messages = [{"role": "system", "content": """Please create engaging and informative video scripts for real
8
  estate agents to use on social media. The target audience is potential homebuyers and sellers.
9
  The tone should be professional and friendly, with a focus on building trust and showcasing the agent's expertise.
10
+ Your scripts do not include the agents name, they don't have any sort of greeting, and they are optomized to be used to create
11
+ videos that will be shared on social media.
12
+ Take the final message from the user as a suggestion for the script topic. Then follow these steps:
13
+ 1. Write a draft of the script that includes a strong call to action at the end that asks viewers to reach out to the agent.
14
+ 2. Review the draft to find the most compelling or engaging aspect of the script.
15
+ 3. Write 5 alternative hooks for the script. A hook is the first one or two sentences that grab the attention
16
+ of the viewer and summarize what they can expect to hear in the rest of the script.
17
+ 4. Choose the best hook and replace the beginning of the script draft with that hook.
18
+ 5. Return just the words the agent should read into the camera."""}]
19
 
20
  def CustomChatGPT(user_input, messages):
21
  messages.append({"role": "user", "content": user_input})