Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +3 -1
functions.py
CHANGED
@@ -64,11 +64,13 @@ def get_transcribe_podcast(rss_url, local_path):
|
|
64 |
#Get size of audio file
|
65 |
audio_size = round(os.path.getsize(audio_file)/(1024*1024),1)
|
66 |
|
|
|
|
|
67 |
#Check if file is > 24mb, if not then use Whisper API
|
68 |
if audio_size <= 25:
|
69 |
|
70 |
#Use whisper API
|
71 |
-
results = load_whisper_api(audio_file)
|
72 |
|
73 |
else:
|
74 |
|
|
|
64 |
#Get size of audio file
|
65 |
audio_size = round(os.path.getsize(audio_file)/(1024*1024),1)
|
66 |
|
67 |
+
print(f'audio size: {audio_size}')
|
68 |
+
|
69 |
#Check if file is > 24mb, if not then use Whisper API
|
70 |
if audio_size <= 25:
|
71 |
|
72 |
#Use whisper API
|
73 |
+
results = load_whisper_api(audio_file)
|
74 |
|
75 |
else:
|
76 |
|