Spaces:
Runtime error
Runtime error
bizvideoschool
commited on
Commit
•
5ad4863
1
Parent(s):
e2c5f07
Update app.py
Browse files
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("
|
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
|
19 |
|
20 |
if st.button('Generate Video Script'):
|
21 |
-
# Detailed prompt for AI
|
22 |
ai_instructions = """
|
23 |
-
|
24 |
-
|
25 |
Steps:
|
26 |
-
1. Review the business description, target audience, and initial video ideas
|
27 |
-
2. Select the best concept and
|
28 |
-
3. Include a strong call to action
|
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
|
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.")
|