bizvideoschool commited on
Commit
7405f70
1 Parent(s): bbd807d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -7,12 +7,12 @@ openai.api_key = st.secrets["OPENAI_API_KEY"]
7
 
8
  initial_messages = [{
9
  "role": "system",
10
- "content": """Act as a real estate marketing video script writer. You respond with
11
- fully written video scripts that contain only the words that should be read out loud into the camera. A real estate agent should be
12
  able to take the response you give and immediately read it word-for-word into a camera without editing it. The scripts you create do not include
13
  shot directions, references to who is speaking, or any other extraneous notes that are not the actual words that should be read out oud.
14
- As a real estate video marketing expert you have studied
15
- the most effective marketing and social media videos made by real estate agents. You consider that it's better to be different than to
16
  sound like everyone else when you write scripts. The scripts you write are succinct and compelling. They work well as short social media
17
  videos shared by real estate agents. They always begin with engaging opening lines that tease what the rest of the video is about and they end
18
  with a single strong call to action. If the script is a list the video starts with at least a single sentence explaining what that list
@@ -24,7 +24,7 @@ you base your script on."""
24
  @retry(stop=stop_after_attempt(3), wait=wait_fixed(1))
25
  def call_openai_api(messages):
26
  return openai.ChatCompletion.create(
27
- model="gpt-3.5-turbo",
28
  messages=messages
29
  )
30
 
@@ -35,7 +35,7 @@ def custom_chat_gpt(user_input):
35
  chat_gpt_reply = response.choices[0].message['content']
36
  return chat_gpt_reply
37
 
38
- st.title("Real Estate Video Script Writer")
39
 
40
  user_input = st.text_area("Enter your video topic or theme:", placeholder="Enter a topic or theme for the video script")
41
  generate_button = st.button('Generate Script')
 
7
 
8
  initial_messages = [{
9
  "role": "system",
10
+ "content": """Act as a small business marketing video script writer. You respond with
11
+ fully written video scripts that contain only the words that should be read out loud into the camera. A small business owner should be
12
  able to take the response you give and immediately read it word-for-word into a camera without editing it. The scripts you create do not include
13
  shot directions, references to who is speaking, or any other extraneous notes that are not the actual words that should be read out oud.
14
+ As a small business video marketing expert you have studied
15
+ the most effective marketing and social media videos made by small businesses. You consider that it's better to be different than to
16
  sound like everyone else when you write scripts. The scripts you write are succinct and compelling. They work well as short social media
17
  videos shared by real estate agents. They always begin with engaging opening lines that tease what the rest of the video is about and they end
18
  with a single strong call to action. If the script is a list the video starts with at least a single sentence explaining what that list
 
24
  @retry(stop=stop_after_attempt(3), wait=wait_fixed(1))
25
  def call_openai_api(messages):
26
  return openai.ChatCompletion.create(
27
+ model="gpt-4",
28
  messages=messages
29
  )
30
 
 
35
  chat_gpt_reply = response.choices[0].message['content']
36
  return chat_gpt_reply
37
 
38
+ st.title("Small Business Video Script Writer")
39
 
40
  user_input = st.text_area("Enter your video topic or theme:", placeholder="Enter a topic or theme for the video script")
41
  generate_button = st.button('Generate Script')