nickmuchi commited on
Commit
3905d9a
1 Parent(s): 10a54fb

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +0 -11
functions.py CHANGED
@@ -1,6 +1,5 @@
1
  import whisper
2
  import os
3
- from pytube import YouTube
4
  import openai
5
  import pandas as pd
6
  import plotly_express as px
@@ -124,16 +123,6 @@ def get_yt_audio(url):
124
 
125
  return audio_file
126
 
127
- if __name__ == "__main__":
128
- video_url = url
129
- temp_dir = r"C:\Users\nickm\OneDrive\Python_Code\Machine_Learning_Code\HuggingFace\ASR\temp"
130
- temp_audio_file = download_audio(video_url, temp_dir)
131
- with open(temp_audio_file+'.mp3', 'rb') as file:
132
- audio_file = file.read()
133
-
134
- # Use the audio_file variable here for further processing
135
- print(len(audio_file))
136
-
137
 
138
  @st.cache_resource
139
  def load_models():
 
1
  import whisper
2
  import os
 
3
  import openai
4
  import pandas as pd
5
  import plotly_express as px
 
123
 
124
  return audio_file
125
 
 
 
 
 
 
 
 
 
 
 
126
 
127
  @st.cache_resource
128
  def load_models():