Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,22 +38,24 @@ def main():
|
|
38 |
|
39 |
Enjoy organizing your YouTube playlist effortlessly!
|
40 |
""")
|
|
|
|
|
|
|
41 |
|
42 |
# Get the playlist URL from the user
|
43 |
playlist_url = st.text_input("Enter the playlist URL:", value="https://www.youtube.com/watch?v=rGx1QNdYzvs&list=PLUaB-1hjhk8FE_XZ87vPPSfHqb6OcM0cF")
|
44 |
-
|
45 |
-
# Get repetitive terms from the user
|
46 |
repetitive_terms = st.text_input("Enter repetitive terms (comma-separated):", value="Excel, Sql, Power Bi, Tableau, Python")
|
47 |
repetitive_terms = [term.strip().upper() for term in repetitive_terms.split(',')]
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
|
54 |
-
if st.button("Copy Example Terms"):
|
55 |
-
pyperclip.copy("Excel, Sql, Power Bi, Tableau, Python")
|
56 |
-
st.success("Example terms copied to clipboard!")
|
57 |
|
58 |
# Add an organize videos button
|
59 |
if st.button("Organize Videos"):
|
|
|
38 |
|
39 |
Enjoy organizing your YouTube playlist effortlessly!
|
40 |
""")
|
41 |
+
|
42 |
+
# Guide users to replace default values with their own link and repetitive terms
|
43 |
+
st.write("Replace the default values with your own playlist URL and repetitive terms.")
|
44 |
|
45 |
# Get the playlist URL from the user
|
46 |
playlist_url = st.text_input("Enter the playlist URL:", value="https://www.youtube.com/watch?v=rGx1QNdYzvs&list=PLUaB-1hjhk8FE_XZ87vPPSfHqb6OcM0cF")
|
47 |
+
|
48 |
+
# Get repetitive terms from the user
|
49 |
repetitive_terms = st.text_input("Enter repetitive terms (comma-separated):", value="Excel, Sql, Power Bi, Tableau, Python")
|
50 |
repetitive_terms = [term.strip().upper() for term in repetitive_terms.split(',')]
|
51 |
|
52 |
+
# Add an organize videos button
|
53 |
+
if st.button("Organize Videos"):
|
54 |
+
organized_doc = organize_videos(playlist_url, repetitive_terms)
|
55 |
+
# Provide a download link for the generated document
|
56 |
+
st.markdown(get_download_link(organized_doc), unsafe_allow_html=True)
|
57 |
+
display_organized_videos(organized_doc)
|
58 |
|
|
|
|
|
|
|
59 |
|
60 |
# Add an organize videos button
|
61 |
if st.button("Organize Videos"):
|