Spaces:
Sleeping
Sleeping
Transcribe when the microphone stops
Browse files
app.py
CHANGED
|
@@ -217,7 +217,7 @@ with gr.Blocks() as demo:
|
|
| 217 |
|
| 218 |
translation.change(fn=tts, inputs=[translation, tgt], outputs=speech)
|
| 219 |
|
| 220 |
-
mic.
|
| 221 |
transcription.change(
|
| 222 |
fn=evaluate, inputs=[tgt, translation, transcription], outputs=[accuracy]
|
| 223 |
)
|
|
|
|
| 217 |
|
| 218 |
translation.change(fn=tts, inputs=[translation, tgt], outputs=speech)
|
| 219 |
|
| 220 |
+
mic.stop(fn=transcribe, inputs=[mic, tgt], outputs=[transcription])
|
| 221 |
transcription.change(
|
| 222 |
fn=evaluate, inputs=[tgt, translation, transcription], outputs=[accuracy]
|
| 223 |
)
|