Spaces:
Sleeping
Sleeping
eaglelandsonce
commited on
Commit
•
09cc673
1
Parent(s):
0f6852b
Update pages/1_SingleTranscipt.py
Browse files
pages/1_SingleTranscipt.py
CHANGED
@@ -36,6 +36,12 @@ def transcribe_video(youtube_url):
|
|
36 |
# Streamlit interface
|
37 |
st.title("YouTube Video Transcription Extractor")
|
38 |
youtube_url = st.text_input("Enter the YouTube Video URL", placeholder="Example: https://www.youtube.com/watch?v=MnDudvCyWpc")
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
if st.button("Transcribe Video"):
|
40 |
result = transcribe_video(youtube_url)
|
41 |
st.text_area("Transcription:", value=result, height=300)
|
|
|
36 |
# Streamlit interface
|
37 |
st.title("YouTube Video Transcription Extractor")
|
38 |
youtube_url = st.text_input("Enter the YouTube Video URL", placeholder="Example: https://www.youtube.com/watch?v=MnDudvCyWpc")
|
39 |
+
if youtube_url:
|
40 |
+
video_id = extract_video_id(youtube_url)
|
41 |
+
if video_id:
|
42 |
+
video_embed_url = f"https://www.youtube.com/embed/{video_id}"
|
43 |
+
st.video(video_embed_url)
|
44 |
+
|
45 |
if st.button("Transcribe Video"):
|
46 |
result = transcribe_video(youtube_url)
|
47 |
st.text_area("Transcription:", value=result, height=300)
|