Update app.py
#1
by
ChandJain
- opened
app.py
CHANGED
|
@@ -37,16 +37,16 @@ mic_transcribe = gr.Interface(
|
|
| 37 |
fn=transcribe_speech,
|
| 38 |
inputs=gr.Audio(sources="microphone",
|
| 39 |
type="filepath"),
|
| 40 |
-
|
| 41 |
-
outputs=gr.Audio(label="Translated Message"),
|
| 42 |
allow_flagging="never")
|
| 43 |
|
| 44 |
file_transcribe = gr.Interface(
|
| 45 |
fn=transcribe_speech,
|
| 46 |
inputs=gr.Audio(sources="upload",
|
| 47 |
type="filepath"),
|
| 48 |
-
|
| 49 |
-
outputs=gr.Audio(label="Translated Message"),
|
| 50 |
allow_flagging="never"
|
| 51 |
)
|
| 52 |
with demo:
|
|
|
|
| 37 |
fn=transcribe_speech,
|
| 38 |
inputs=gr.Audio(sources="microphone",
|
| 39 |
type="filepath"),
|
| 40 |
+
outputs="audio",
|
| 41 |
+
#outputs=gr.Audio(label="Translated Message"),
|
| 42 |
allow_flagging="never")
|
| 43 |
|
| 44 |
file_transcribe = gr.Interface(
|
| 45 |
fn=transcribe_speech,
|
| 46 |
inputs=gr.Audio(sources="upload",
|
| 47 |
type="filepath"),
|
| 48 |
+
outputs="audio",
|
| 49 |
+
#outputs=gr.Audio(label="Translated Message"),
|
| 50 |
allow_flagging="never"
|
| 51 |
)
|
| 52 |
with demo:
|