Abhaykoul commited on
Commit
9feedce
1 Parent(s): 0bf364b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -8,13 +8,15 @@ class YouTubeDownloader:
8
  url = st.text_input("Enter YouTube URL to download:")
9
  if url:
10
  YouTubeDownloader.validate_url(url)
11
- with st.expander("Preview video"):
12
  st.video(url)
13
  if st.button("Download"):
14
  YouTubeDownloader.cleanup()
15
  file_ = YouTubeDownloader.download_video(url)
16
  st.video(file_)
17
  YouTubeDownloader.helper_message()
 
 
18
 
19
  @staticmethod
20
  def download_video(url):
@@ -48,9 +50,10 @@ class YouTubeDownloader:
48
  @classmethod
49
  def helper_message(cls):
50
  st.write(
51
- "> To save the video to the local computer, "
52
  "click the vertical ... icon (aka hamburger button) in the bottom-right corner (in the video above) and click download."
53
  )
54
 
 
55
  if __name__ == "__main__":
56
- YouTubeDownloader.run()
 
8
  url = st.text_input("Enter YouTube URL to download:")
9
  if url:
10
  YouTubeDownloader.validate_url(url)
11
+ with st.expander("preview video"):
12
  st.video(url)
13
  if st.button("Download"):
14
  YouTubeDownloader.cleanup()
15
  file_ = YouTubeDownloader.download_video(url)
16
  st.video(file_)
17
  YouTubeDownloader.helper_message()
18
+ st.markdown("> App made by Abhay Koul ([HelpingAI on GitHub](https://github.com/HelpingAI))")
19
+
20
 
21
  @staticmethod
22
  def download_video(url):
 
50
  @classmethod
51
  def helper_message(cls):
52
  st.write(
53
+ "> To save the video to local computer, "
54
  "click the vertical ... icon (aka hamburger button) in the bottom-right corner (in the video above) and click download."
55
  )
56
 
57
+
58
  if __name__ == "__main__":
59
+ YouTubeDownloader.run()