bizvideoschool commited on
Commit
5ad4863
1 Parent(s): e2c5f07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -4,7 +4,7 @@ import openai
4
  # Access the OpenAI API key from Hugging Face Spaces secrets
5
  openai.api_key = st.secrets["OPENAI_API_KEY"]
6
 
7
- st.title("Small Business Video Scripter")
8
 
9
  # User inputs
10
  st.subheader("About Your Business")
@@ -15,20 +15,19 @@ st.subheader("Video Type and Platform")
15
  video_type = st.text_input("Video Type/Platform", placeholder="E.g., TikTok, Instagram Reels, YouTube")
16
 
17
  st.subheader("Initial Video Ideas")
18
- initial_ideas = st.text_area("Initial Video Ideas", placeholder="Any initial ideas or themes you have in mind for the video?")
19
 
20
  if st.button('Generate Video Script'):
21
- # Detailed prompt for AI including the steps
22
  ai_instructions = """
23
- As an AI consultant, create a video script suitable for the specified platform and format, focusing on engaging content that resonates with the business's target audience.
24
-
25
  Steps:
26
- 1. Review the business description, target audience, and initial video ideas to brainstorm 20 potential video concepts with compelling hooks.
27
- 2. Select the best concept and develop a script. The script should be under 200 words, aligning with effective short-form video formats.
28
- 3. Include a strong call to action relevant to the small business.
29
- 4. Provide the script first, followed by additional filming and editing tips suitable for the chosen platform.
30
 
31
- The script should be teleprompter-ready, free of shot directions or speaker references.
32
  """
33
 
34
  # Construct the prompt for the AI
@@ -48,8 +47,8 @@ if st.button('Generate Video Script'):
48
  script = f"Error in generating video script: {e}"
49
 
50
  # Display the video script
51
- st.markdown("### Your Video Script")
52
  st.write(script)
53
 
54
  # Disclaimer
55
- st.write("Disclaimer: This script is AI-generated. Please review and customize it to fit your specific business needs and video platform.")
 
4
  # Access the OpenAI API key from Hugging Face Spaces secrets
5
  openai.api_key = st.secrets["OPENAI_API_KEY"]
6
 
7
+ st.title("Valentine's Day Video Scripter for Small Businesses")
8
 
9
  # User inputs
10
  st.subheader("About Your Business")
 
15
  video_type = st.text_input("Video Type/Platform", placeholder="E.g., TikTok, Instagram Reels, YouTube")
16
 
17
  st.subheader("Initial Video Ideas")
18
+ initial_ideas = st.text_area("Initial Video Ideas", placeholder="Any initial Valentine's Day themes or ideas you have in mind for the video?")
19
 
20
  if st.button('Generate Video Script'):
21
+ # Detailed prompt for AI focusing on Valentine's Day
22
  ai_instructions = """
23
+ Create a playful and engaging Valentine's Day themed video script for the specified platform, focusing on content that resonates with the target audience for Valentine's promotions. The script should creatively promote the business while incorporating Valentine's Day elements.
 
24
  Steps:
25
+ 1. Review the business description, target audience, and initial video ideas, then brainstorm 20 potential video concepts with compelling Valentine's Day themed hooks.
26
+ 2. Select the best concept that is playful and aligns with Valentine's Day. Develop a script under 200 words, suitable for short-form video formats.
27
+ 3. Include a strong and relevant call to action for Valentine's Day, encouraging viewers to engage with the business.
28
+ 4. Provide the script first, followed by additional filming and editing tips suitable for the chosen platform, emphasizing Valentine's Day aesthetics.
29
 
30
+ The script should be ready to use in a teleprompter, free of shot directions or speaker references, and tailored to Valentine's Day promotional activities.
31
  """
32
 
33
  # Construct the prompt for the AI
 
47
  script = f"Error in generating video script: {e}"
48
 
49
  # Display the video script
50
+ st.markdown("### Your Valentine's Day Video Script")
51
  st.write(script)
52
 
53
  # Disclaimer
54
+ st.write("Disclaimer: This script is AI-generated. Please review and customize it to fit your specific business needs and video platform, especially for Valentine's Day.")