Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def transcribe_speech(filepath):
|
|
18 |
gr.Warning("No text found, please retry.")
|
19 |
return ""
|
20 |
narrated_text=pipe(filepath)
|
21 |
-
return narrated_text['
|
22 |
|
23 |
mic_transcribe = gr.Interface(
|
24 |
fn=transcribe_speech,
|
|
|
18 |
gr.Warning("No text found, please retry.")
|
19 |
return ""
|
20 |
narrated_text=pipe(filepath)
|
21 |
+
return narrated_text['sampling_rate'],narrated_text['audio']
|
22 |
|
23 |
mic_transcribe = gr.Interface(
|
24 |
fn=transcribe_speech,
|