awacke1 commited on
Commit
d0738fa
·
1 Parent(s): 5be6373

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -5,10 +5,14 @@ class YouTubeDownloader:
5
  @staticmethod
6
  def run():
7
  st.header("Video View and Download")
 
8
  option = st.selectbox('How would you like to be contacted for the download list?',('Email', 'Mobile phone'))
9
-
10
  st.write('You selected:', option)
11
- url = st.text_input("YouTube Video URL:")
 
 
 
 
12
  if url:
13
  YouTubeDownloader.validate_url(url)
14
  with st.expander("View"):
 
5
  @staticmethod
6
  def run():
7
  st.header("Video View and Download")
8
+
9
  option = st.selectbox('How would you like to be contacted for the download list?',('Email', 'Mobile phone'))
 
10
  st.write('You selected:', option)
11
+ option2 = st.selectbox('Would you try one of these one minute AI generated science fiction short videos?',('https://www.youtube.com/watch?v=e4X1WueksH0&list=UUdKiy5xeO2JuWuIlE5nUaNw&index=14', 'https://www.youtube.com/watch?v=e4X1WueksH0&list=UUdKiy5xeO2JuWuIlE5nUaNw&index=13'))
12
+ if option2:
13
+ url=option2
14
+ else:
15
+ url = st.text_input("YouTube Video URL:")
16
  if url:
17
  YouTubeDownloader.validate_url(url)
18
  with st.expander("View"):