muhammadnasar commited on
Commit
0530cc9
1 Parent(s): 51fef84

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from whisper import dowload_youtube_video, transcribe_audio
3
+ import os
4
+
5
+
6
+
7
+ st.title("Youtube Video + OpenAI Whisper")
8
+ if st.text_input('Please Enter the access code') == os.environ['password']:
9
+ print(os.environ['password'])
10
+
11
+ user_input = st.text_input('Enter Your YouTube URL')
12
+
13
+ with st.spinner('Sit back and relax. It takes a minute.'):
14
+ if st.button('Transcribe'):
15
+ if user_input:
16
+ download_audio = dowload_youtube_video(user_input)
17
+ st.write(transcribe_audio())