Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,11 +95,9 @@ with youtube_url_tab:
|
|
| 95 |
# Video file transcription
|
| 96 |
|
| 97 |
with file_select_tab:
|
| 98 |
-
|
|
|
|
| 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"):
|