erastorgueva-nv
commited on
Commit
•
2952aac
1
Parent(s):
c126800
remove print statements
Browse files
app.py
CHANGED
@@ -84,10 +84,6 @@ def get_S_prime_and_T(text, model_name, model, audio_duration):
|
|
84 |
|
85 |
S_prime = len(all_tokens) + n_token_repetitions
|
86 |
|
87 |
-
print('all_tokens', all_tokens)
|
88 |
-
print(len(all_tokens))
|
89 |
-
print(n_token_repetitions)
|
90 |
-
|
91 |
return S_prime, T
|
92 |
|
93 |
|
@@ -103,7 +99,6 @@ def delete_mp4s_except_given_filepath(filepath):
|
|
103 |
mp4_files_in_dir = [x for x in files_in_dir if x.endswith(".mp4")]
|
104 |
for mp4_file in mp4_files_in_dir:
|
105 |
if mp4_file != filepath:
|
106 |
-
print('deleting', mp4_file)
|
107 |
os.remove(mp4_file)
|
108 |
|
109 |
|
@@ -175,7 +170,6 @@ def align(lang, Microphone, File_Upload, text, col1, col2, col3, progress=gr.Pro
|
|
175 |
text = model.transcribe([audio_path])[0]
|
176 |
if 'hybrid' in model_name:
|
177 |
text = text[0]
|
178 |
-
print('transcribed text:', text)
|
179 |
|
180 |
if text == "":
|
181 |
raise gr.Error(
|
|
|
84 |
|
85 |
S_prime = len(all_tokens) + n_token_repetitions
|
86 |
|
|
|
|
|
|
|
|
|
87 |
return S_prime, T
|
88 |
|
89 |
|
|
|
99 |
mp4_files_in_dir = [x for x in files_in_dir if x.endswith(".mp4")]
|
100 |
for mp4_file in mp4_files_in_dir:
|
101 |
if mp4_file != filepath:
|
|
|
102 |
os.remove(mp4_file)
|
103 |
|
104 |
|
|
|
170 |
text = model.transcribe([audio_path])[0]
|
171 |
if 'hybrid' in model_name:
|
172 |
text = text[0]
|
|
|
173 |
|
174 |
if text == "":
|
175 |
raise gr.Error(
|