qanastek commited on
Commit
43bb9e7
β€’
1 Parent(s): d66e935

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,7 +94,7 @@ audio_paths = [
94
 
95
  def predict(wav_file):
96
  res = process(wav_file)
97
- return res["text"]
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.Textbox(label='decoding result'),
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 πŸ€—',