Spaces:
Runtime error
Runtime error
Update streamlitapp.py
Browse files- streamlitapp.py +2 -2
streamlitapp.py
CHANGED
@@ -20,7 +20,7 @@ with st.sidebar:
|
|
20 |
|
21 |
st.title('LipNet using StreamLit βπ»')
|
22 |
# Generating a list of options or videos
|
23 |
-
options = os.listdir(os.path.join('
|
24 |
selected_video = st.selectbox('Choose video', options)
|
25 |
|
26 |
# Generate two columns
|
@@ -31,7 +31,7 @@ if options:
|
|
31 |
# Rendering the video
|
32 |
with col1:
|
33 |
st.info('The video below displays the converted video in mp4 format')
|
34 |
-
file_path = os.path.join('
|
35 |
os.system(f'ffmpeg -i {file_path} -vcodec libx264 test_video.mp4 -y')
|
36 |
|
37 |
# Rendering inside of the app
|
|
|
20 |
|
21 |
st.title('LipNet using StreamLit βπ»')
|
22 |
# Generating a list of options or videos
|
23 |
+
options = os.listdir(os.path.join('data', 's1'))
|
24 |
selected_video = st.selectbox('Choose video', options)
|
25 |
|
26 |
# Generate two columns
|
|
|
31 |
# Rendering the video
|
32 |
with col1:
|
33 |
st.info('The video below displays the converted video in mp4 format')
|
34 |
+
file_path = os.path.join('data','s1', selected_video)
|
35 |
os.system(f'ffmpeg -i {file_path} -vcodec libx264 test_video.mp4 -y')
|
36 |
|
37 |
# Rendering inside of the app
|