Commit ·
8060fae
1
Parent(s): 3e809b7
Update app.py
Browse files1 unmodified line23456786 unmodified lines151617181920211 unmodified lineimport openai# Access the OpenAI API key from Hugging Face Spaces secretsopenai.api_key = st.secrets["OPENAI_API_KEY"]st.title("Holiday Video Script Generator for Realtors")6 unmodified linesif st.button('Generate Script'):# Formulate the user input for the scriptuser_input = (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}.""")1 unmodified line23456786 unmodified lines151617181920211 unmodified lineimport openai# Access the OpenAI API key from Hugging Face Spaces secretsopenai.api_key = st.secrets["YOUR_OPENAI_API_KEY"]st.title("Holiday Video Script Generator for Realtors")6 unmodified linesif st.button('Generate Script'):# Formulate the user input for the scriptuser_input = (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.""")
app.py+2-2