bizvideoschool commited on
Commit
1c4e1ed
·
1 Parent(s): 11f5ca8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,7 +7,6 @@ openai.api_key = st.secrets["YOUR_OPENAI_API_KEY"]
7
  st.title("Holiday Video Script Generator for Real Estate Agents")
8
 
9
  # User inputs
10
- agent_name = st.text_input("Your Name", placeholder="Enter your name")
11
  video_tone = st.text_input("Video Tone", placeholder="e.g., Whimsical, Serious, Friendly (Type your desired tone)")
12
  holiday_theme = st.text_area("Holiday Theme and Additional Details",
13
  placeholder="Enter a specific holiday theme or message you want to share, including any extra details for the script (e.g., community spirit, gratitude, holiday events)")
@@ -26,7 +25,7 @@ initial_messages = [{
26
 
27
  if st.button('Generate Script'):
28
  # Process the inputs and call the OpenAI API
29
- user_input = f"Create a holiday video script for a real estate agent named {agent_name}. The video tone should be '{video_tone}'. The holiday theme and additional details are: '{holiday_theme}'. The script should end with a call to action: '{call_to_action}'."
30
 
31
  # Call the OpenAI API with the chat model
32
  response = openai.ChatCompletion.create(
 
7
  st.title("Holiday Video Script Generator for Real Estate Agents")
8
 
9
  # User inputs
 
10
  video_tone = st.text_input("Video Tone", placeholder="e.g., Whimsical, Serious, Friendly (Type your desired tone)")
11
  holiday_theme = st.text_area("Holiday Theme and Additional Details",
12
  placeholder="Enter a specific holiday theme or message you want to share, including any extra details for the script (e.g., community spirit, gratitude, holiday events)")
 
25
 
26
  if st.button('Generate Script'):
27
  # Process the inputs and call the OpenAI API
28
+ user_input = f"Create a holiday video script. The video tone should be '{video_tone}'. The holiday theme and additional details are: '{holiday_theme}'. The script should end with a call to action: '{call_to_action}'."
29
 
30
  # Call the OpenAI API with the chat model
31
  response = openai.ChatCompletion.create(