bizvideoschool commited on
Commit
8060fae
1 Parent(s): 3e809b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import openai
3
 
4
  # Access the OpenAI API key from Hugging Face Spaces secrets
5
- openai.api_key = st.secrets["OPENAI_API_KEY"]
6
 
7
  st.title("Holiday Video Script Generator for Realtors")
8
 
@@ -15,7 +15,7 @@ personal_message = st.text_area("Personal Message", placeholder="Enter any perso
15
  if st.button('Generate Script'):
16
  # Formulate the user input for the script
17
  user_input = (
18
- f"""You are an AI assistant that helps real estate agents create compelling holiday video scripts. The script should be festive, engaging, and approximately one minute long. Include elements like community engagement, local highlights, market insights, home decoration tips, and a personalized message. The agent's name is {agent_name}. They focus on the {community_focus} community. The holiday theme is {holiday_theme}. They want to include the following personal message: {personal_message}.
19
  """
20
  )
21
 
 
2
  import openai
3
 
4
  # Access the OpenAI API key from Hugging Face Spaces secrets
5
+ openai.api_key = st.secrets["YOUR_OPENAI_API_KEY"]
6
 
7
  st.title("Holiday Video Script Generator for Realtors")
8
 
 
15
  if st.button('Generate Script'):
16
  # Formulate the user input for the script
17
  user_input = (
18
+ f"""You are an AI assistant that helps real estate agents create compelling holiday video scripts. Create a script that is festive, engaging, and approximately one minute long. Include elements like community engagement, local highlights, market insights, home decoration tips, and a personalized message from {agent_name}, focusing on the {community_focus} community. The holiday theme is {holiday_theme}. Include this personal message: {personal_message}. End with notes on suitable B-roll shots and music.
19
  """
20
  )
21