lisaf commited on
Commit
2f30f0d
β€’
1 Parent(s): b91ecf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
13
 
14
  prompt = """**You are a YouTube video summarizer.** You will be taking the transcript text
15
  and summarizing the entire video and providing the important summary in points
16
- within 250 words. Please provide the summary of the text given here: """
17
 
18
 
19
  # Function to extract transcript data from YouTube videos
@@ -69,7 +69,7 @@ youtube_link = st.sidebar.text_input("Enter YouTube Video Link:")
69
  action = st.sidebar.selectbox("Select Action:", ["Choose", "Get Detailed Summary", "Analyze Sentiment"])
70
 
71
  if action == "Get Detailed Summary":
72
- max_length = st.sidebar.slider("Select Maximum Summary Length (words)", min_value=50, max_value=500, value=250)
73
 
74
  if st.sidebar.button("πŸš€ Perform Action"):
75
  if action == "Get Detailed Summary":
 
13
 
14
  prompt = """**You are a YouTube video summarizer.** You will be taking the transcript text
15
  and summarizing the entire video and providing the important summary in points
16
+ within 1500 words.The Summary Should Be As detailed As Possible . Please provide the summary of the text given here: """
17
 
18
 
19
  # Function to extract transcript data from YouTube videos
 
69
  action = st.sidebar.selectbox("Select Action:", ["Choose", "Get Detailed Summary", "Analyze Sentiment"])
70
 
71
  if action == "Get Detailed Summary":
72
+ max_length = st.sidebar.slider("Select Maximum Summary Length (words)", min_value=50, max_value=1500, value=400)
73
 
74
  if st.sidebar.button("πŸš€ Perform Action"):
75
  if action == "Get Detailed Summary":