Daniel Tse
commited on
Commit
•
a88c32a
1
Parent(s):
34b0634
Fix typo
Browse files- functions.py +2 -1
functions.py
CHANGED
@@ -9,8 +9,9 @@ def transcribe_audio(audiofile):
|
|
9 |
print(f"audio_file_session_state:{st.session_state['audio'] }")
|
10 |
|
11 |
#get size of audio file
|
12 |
-
audio_size = round(os.path.getsize(st.session_state['audio']
|
13 |
|
14 |
print(f"audio file size:{audio_size}")
|
15 |
|
|
|
16 |
return audio_size
|
|
|
9 |
print(f"audio_file_session_state:{st.session_state['audio'] }")
|
10 |
|
11 |
#get size of audio file
|
12 |
+
audio_size = round(os.path.getsize(st.session_state['audio'])/(1024*1024),1)
|
13 |
|
14 |
print(f"audio file size:{audio_size}")
|
15 |
|
16 |
+
|
17 |
return audio_size
|