Spaces:
Build error
Build error
patrickvonplaten
commited on
Commit
•
3740191
1
Parent(s):
47991e5
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,10 @@ def process_audio_file(file):
|
|
14 |
input_values = feature_extractor(data, return_tensors="pt").input_values
|
15 |
return input_values
|
16 |
|
17 |
-
def transcribe(file):
|
|
|
|
|
|
|
18 |
input_values = process_audio_file(file)
|
19 |
|
20 |
sequences = model.generate(input_values)
|
|
|
14 |
input_values = feature_extractor(data, return_tensors="pt").input_values
|
15 |
return input_values
|
16 |
|
17 |
+
def transcribe(target_language, file):
|
18 |
+
|
19 |
+
print("Target", target_language)
|
20 |
+
|
21 |
input_values = process_audio_file(file)
|
22 |
|
23 |
sequences = model.generate(input_values)
|