bizvideoschool commited on
Commit
fc97a11
1 Parent(s): 72a8d36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("2024 Video Marketing Plan Generator")
8
 
9
  # Function to recommend classes based on video-making experience
10
  def recommend_classes(video_experience):
@@ -182,7 +182,7 @@ current_marketing = st.text_area("Current Marketing Strategies", placeholder="De
182
  st.subheader("Your Video Making Experience")
183
  video_experience = st.number_input("How many videos have you made in the past month?", min_value=0, max_value=100, step=1)
184
 
185
- if st.button('Generate My Video Marketing Plan and Class Recommendations'):
186
  # Construct the prompt for text generation
187
  prompt_text = (
188
  f"Generate a 2024 video marketing plan for a {business_type} targeting an audience characterized as: {target_audience}. "
@@ -215,7 +215,7 @@ if st.button('Generate My Video Marketing Plan and Class Recommendations'):
215
  # Copy to clipboard button
216
  if marketing_plan:
217
  full_text = marketing_plan + "\n\nRecommended Classes: " + ", ".join(class_recommendations)
218
- st.text_area("Copy and paste the plan and recommendations:", full_text, height=300, key="text_area")
219
  st.button("Copy to Clipboard", key="copy-button")
220
 
221
  # No additional code needed beyond this point for your application
 
4
  # Access the OpenAI API key from Hugging Face Spaces secrets
5
  openai.api_key = st.secrets["OPENAI_API_KEY"]
6
 
7
+ st.title("2024 Video Content Calendar Generator")
8
 
9
  # Function to recommend classes based on video-making experience
10
  def recommend_classes(video_experience):
 
182
  st.subheader("Your Video Making Experience")
183
  video_experience = st.number_input("How many videos have you made in the past month?", min_value=0, max_value=100, step=1)
184
 
185
+ if st.button('Generate My Custom 2024 Video Content Plan'):
186
  # Construct the prompt for text generation
187
  prompt_text = (
188
  f"Generate a 2024 video marketing plan for a {business_type} targeting an audience characterized as: {target_audience}. "
 
215
  # Copy to clipboard button
216
  if marketing_plan:
217
  full_text = marketing_plan + "\n\nRecommended Classes: " + ", ".join(class_recommendations)
218
+ st.text_area("Copy and paste the plan", full_text, height=300, key="text_area")
219
  st.button("Copy to Clipboard", key="copy-button")
220
 
221
  # No additional code needed beyond this point for your application