Update app.py
Browse files
app.py
CHANGED
@@ -38,14 +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
|
44 |
|
45 |
-
# Get repetitive terms from the user
|
46 |
-
repetitive_terms = st.text_input("Enter repetitive terms (comma-separated,
|
47 |
repetitive_terms = [term.strip().upper() for term in repetitive_terms.split(',')]
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
if st.button("Organize Videos"):
|
50 |
organized_doc = organize_videos(playlist_url, repetitive_terms)
|
51 |
# Provide a download link for the generated document
|
|
|
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 with an example
|
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 |
+
# Add copy buttons for the examples
|
50 |
+
if st.button("Copy Example URL"):
|
51 |
+
pyperclip.copy("https://www.youtube.com/watch?v=rGx1QNdYzvs&list=PLUaB-1hjhk8FE_XZ87vPPSfHqb6OcM0cF")
|
52 |
+
st.success("Example URL copied to clipboard!")
|
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"):
|
60 |
organized_doc = organize_videos(playlist_url, repetitive_terms)
|
61 |
# Provide a download link for the generated document
|