Spaces:
Sleeping
Sleeping
Raj Jayendrakumar Muchhala
commited on
Commit
·
18d8a7f
1
Parent(s):
f5ca772
Remove links
Browse files
app.py
CHANGED
|
@@ -55,21 +55,13 @@ with col_transcript:
|
|
| 55 |
st.markdown("---")
|
| 56 |
st.subheader("🎥 Video/Audio Upload & Playback")
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
if media_file.type.startswith("video"):
|
| 66 |
-
st.video(media_file)
|
| 67 |
-
elif media_file.type.startswith("audio"):
|
| 68 |
-
st.audio(media_file)
|
| 69 |
-
else:
|
| 70 |
-
media_link = st.text_input("Enter YouTube or external media link:")
|
| 71 |
-
if media_link:
|
| 72 |
-
st.video(media_link)
|
| 73 |
|
| 74 |
# Right Column: Clip Plan Generation and Extraction
|
| 75 |
with col_output:
|
|
|
|
| 55 |
st.markdown("---")
|
| 56 |
st.subheader("🎥 Video/Audio Upload & Playback")
|
| 57 |
|
| 58 |
+
media_file = st.file_uploader("Upload a video or audio file", type=["mp4", "mov", "avi", "mp3", "wav", "ogg"])
|
| 59 |
+
if media_file is not None:
|
| 60 |
+
# Detect media type and play accordingly
|
| 61 |
+
if media_file.type.startswith("video"):
|
| 62 |
+
st.video(media_file)
|
| 63 |
+
elif media_file.type.startswith("audio"):
|
| 64 |
+
st.audio(media_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
# Right Column: Clip Plan Generation and Extraction
|
| 67 |
with col_output:
|