Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ audio_paths = [
|
|
| 94 |
|
| 95 |
def predict(wav_file):
|
| 96 |
res = process(wav_file)
|
| 97 |
-
return res
|
| 98 |
|
| 99 |
# iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
| 100 |
|
|
@@ -106,7 +106,7 @@ iface = gr.Interface(
|
|
| 106 |
gr.inputs.Audio(label='wav file', source='microphone', type='filepath')
|
| 107 |
],
|
| 108 |
outputs=[
|
| 109 |
-
gr.outputs.
|
| 110 |
],
|
| 111 |
examples=examples,
|
| 112 |
article='Made with ❤️ by Yanis Labrak thanks to 🤗',
|
|
|
|
| 94 |
|
| 95 |
def predict(wav_file):
|
| 96 |
res = process(wav_file)
|
| 97 |
+
return res
|
| 98 |
|
| 99 |
# iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
| 100 |
|
|
|
|
| 106 |
gr.inputs.Audio(label='wav file', source='microphone', type='filepath')
|
| 107 |
],
|
| 108 |
outputs=[
|
| 109 |
+
gr.outputs.JSON(label='Slot Recognition + Intent Classification + Language Classification + ASR'),
|
| 110 |
],
|
| 111 |
examples=examples,
|
| 112 |
article='Made with ❤️ by Yanis Labrak thanks to 🤗',
|