Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def transcribe_audio(input_file, language,chunk_length_s=10,
|
|
34 |
pipe.tokenizer.set_target_lang(target_lang_code)
|
35 |
pipe.model.load_adapter(target_lang_code)
|
36 |
|
37 |
-
# Read audio file
|
38 |
-
audio_data = input_file
|
39 |
-
output = pipe(
|
40 |
return output
|
41 |
|
42 |
|
|
|
34 |
pipe.tokenizer.set_target_lang(target_lang_code)
|
35 |
pipe.model.load_adapter(target_lang_code)
|
36 |
|
37 |
+
# # Read audio file
|
38 |
+
# audio_data = input_file
|
39 |
+
output = pipe(input_file, chunk_length_s=chunk_length_s, stride_length_s=stride_length_s, return_timestamps=return_timestamps)
|
40 |
return output
|
41 |
|
42 |
|