rasmodev commited on
Commit
e0cc480
·
1 Parent(s): 826b24c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
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 (e.g., 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, e.g., Excel, Sql, Power Bi, Tableau, Python):")
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