Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,7 @@ if uploaded_file is not None:
|
|
| 70 |
|
| 71 |
# 🔹 Générer la transcription
|
| 72 |
with torch.no_grad():
|
| 73 |
-
predicted_ids = model.generate(inputs.input_features)
|
| 74 |
|
| 75 |
# 🔹 Décoder la sortie
|
| 76 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
|
|
|
|
| 70 |
|
| 71 |
# 🔹 Générer la transcription
|
| 72 |
with torch.no_grad():
|
| 73 |
+
predicted_ids = model.generate(input_features=inputs.input_features)
|
| 74 |
|
| 75 |
# 🔹 Décoder la sortie
|
| 76 |
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
|