Grosy commited on
Commit
59377a9
·
verified ·
1 Parent(s): d14b350

updated for latest gradio version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,8 @@ def inference(audio):
64
  return "\n".join(total_prediction) + "\n\n" + ' '.join(words)
65
 
66
 
67
- inputs = gr.inputs.Audio(label="Input Audio", type="file")
68
- outputs = gr.outputs.Textbox(label="Output Text")
69
  title = model_name
70
  description = f"Gradio demo for a {model_name}. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below. Currently supports .wav 16_000hz files, max duration of {max_seconds} sec"
71
  article = "<p style='text-align: center'><a href='https://github.com/GrosyT/GrosyT.github.io' target='_blank'> Github repo</a> | <a href='<HF Space link>' target='_blank'>Pretrained model</a> </p>"
 
64
  return "\n".join(total_prediction) + "\n\n" + ' '.join(words)
65
 
66
 
67
+ inputs = gr.Audio(label="Input Audio", sources="microphone", type="filepath")
68
+ outputs = "text"
69
  title = model_name
70
  description = f"Gradio demo for a {model_name}. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below. Currently supports .wav 16_000hz files, max duration of {max_seconds} sec"
71
  article = "<p style='text-align: center'><a href='https://github.com/GrosyT/GrosyT.github.io' target='_blank'> Github repo</a> | <a href='<HF Space link>' target='_blank'>Pretrained model</a> </p>"