Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ model = pipeline("automatic-speech-recognition", model=model_name, tokenizer=tok
|
|
14 |
|
15 |
# Utilisez la fonction Gradio avec votre modèle chargé
|
16 |
def transcribe(audio):
|
17 |
-
result = model(audio)
|
18 |
-
return result
|
19 |
|
20 |
iface = gr.Interface(
|
21 |
fn=transcribe,
|
@@ -23,4 +23,4 @@ iface = gr.Interface(
|
|
23 |
outputs="text"
|
24 |
)
|
25 |
|
26 |
-
iface.launch(
|
|
|
14 |
|
15 |
# Utilisez la fonction Gradio avec votre modèle chargé
|
16 |
def transcribe(audio):
|
17 |
+
result = model(audio)["text"]
|
18 |
+
return result
|
19 |
|
20 |
iface = gr.Interface(
|
21 |
fn=transcribe,
|
|
|
23 |
outputs="text"
|
24 |
)
|
25 |
|
26 |
+
iface.launch()
|