JaMugen commited on
Commit
f40b1d5
·
1 Parent(s): 20347a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -1,5 +1,17 @@
1
  import streamlit as st
2
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  # Title
5
  st.title("Translate YouTube Video to French with Hugging Face")
 
1
  import streamlit as st
2
  import streamlit as st
3
+ import subprocess
4
+
5
+ def install_libraries():
6
+ try:
7
+ subprocess.check_call(['pip', 'install', 'pytube'])
8
+ subprocess.check_call(['pip', 'install', 'youtube_transcript_api'])
9
+ print("Libraries installed successfully!")
10
+ except subprocess.CalledProcessError as e:
11
+ print("Error during installation:", e)
12
+
13
+ if __name__ == "__main__":
14
+ install_libraries()
15
 
16
  # Title
17
  st.title("Translate YouTube Video to French with Hugging Face")