Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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=
|
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":
|