raphaelmerx commited on
Commit
a665f66
·
1 Parent(s): 9a82013

Upgrade gradio

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🎤
4
  colorFrom: green
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 3.50.2
8
  app_file: app.py
9
  pinned: true
10
  duplicated_from: ayymen/MMS-ASR
 
4
  colorFrom: green
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 5.31.0
8
  app_file: app.py
9
  pinned: true
10
  duplicated_from: ayymen/MMS-ASR
app.py CHANGED
@@ -66,8 +66,7 @@ description = '''Automatic Speech Recognition with [MMS](https://ai.facebook.com
66
  demo = gr.Interface(
67
  transcribe,
68
  inputs=[
69
- gr.Audio(source="microphone", type="filepath", label="Record Audio"),
70
- gr.Audio(source="upload", type="filepath", label="Upload Audio"),
71
  gr.Dropdown(choices=languages, label="Language", value="English (eng)")
72
  ],
73
  outputs=gr.Textbox(label="Transcription"),
@@ -76,4 +75,4 @@ demo = gr.Interface(
76
  )
77
 
78
  if __name__ == "__main__":
79
- demo.queue(concurrency_count=1).launch()
 
66
  demo = gr.Interface(
67
  transcribe,
68
  inputs=[
69
+ gr.Audio(sources=["upload", "microphone"], type="filepath", label="Record Audio"),
 
70
  gr.Dropdown(choices=languages, label="Language", value="English (eng)")
71
  ],
72
  outputs=gr.Textbox(label="Transcription"),
 
75
  )
76
 
77
  if __name__ == "__main__":
78
+ demo.launch()