Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,17 +40,17 @@ def main():
|
|
40 |
""")
|
41 |
|
42 |
# Guide users to replace default values with their own link and repetitive terms
|
43 |
-
st.write("
|
44 |
|
45 |
# Get the playlist URL from the user
|
46 |
-
playlist_url = st.text_input("Enter the playlist URL
|
47 |
|
48 |
# Get repetitive terms from the user
|
49 |
-
repetitive_terms = st.text_input("Enter repetitive terms (comma-separated)
|
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)
|
|
|
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)
|