tensorkelechi commited on
Commit
e5255a2
·
verified ·
1 Parent(s): 604231c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -95,11 +95,9 @@ with youtube_url_tab:
95
  # Video file transcription
96
 
97
  with file_select_tab:
98
- video_file = st.file_uploader("Upload video file", type="mp4")
 
99
  try:
100
- #video_file = video_file.getvalue()
101
- with open(video_file, "wb") as f:
102
- f.write(video_file.getvalue())
103
 
104
  if video_file:
105
  if st.button("Transcribe", key="vidfile"):
 
95
  # Video file transcription
96
 
97
  with file_select_tab:
98
+ uploaded_video_file = st.file_uploader("Upload video file", type="mp4")
99
+ video_file = uploaded_video_file.read()
100
  try:
 
 
 
101
 
102
  if video_file:
103
  if st.button("Transcribe", key="vidfile"):