Spaces:
Sleeping
Sleeping
Commit
·
57c6b73
1
Parent(s):
f370e2a
printing transcription to console
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def predict(audio, mic_audio=None):
|
|
41 |
input_features = processor(waveform, sampling_rate=16000, return_tensors="pt").input_features
|
42 |
predicted_ids = model.generate(input_features, max_length=400)
|
43 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
|
|
|
44 |
return transcription[0]
|
45 |
|
46 |
|
|
|
41 |
input_features = processor(waveform, sampling_rate=16000, return_tensors="pt").input_features
|
42 |
predicted_ids = model.generate(input_features, max_length=400)
|
43 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
|
44 |
+
print(transcription)
|
45 |
return transcription[0]
|
46 |
|
47 |
|