voidash commited on
Commit
ed8fed2
·
verified ·
1 Parent(s): b86a6d6

fix mic recording: disable SSR (0.0.0.0 root-url bug), force wav format

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ examples = [[f"examples/{f}"] for f in sorted(os.listdir("examples"))] \
38
 
39
  demo = gr.Interface(
40
  fn=transcribe,
41
- inputs=gr.Audio(sources=["microphone", "upload"], type="filepath",
42
  label="Nepali speech (mic or file, ≤60 s)"),
43
  outputs=gr.Textbox(label="Transcript (Devanagari)", rtl=False),
44
  title="NepaliConformer — Nepali ASR for real telephone calls",
@@ -57,4 +57,4 @@ demo = gr.Interface(
57
  )
58
 
59
  if __name__ == "__main__":
60
- demo.launch()
 
38
 
39
  demo = gr.Interface(
40
  fn=transcribe,
41
+ inputs=gr.Audio(sources=["microphone", "upload"], type="filepath", format="wav",
42
  label="Nepali speech (mic or file, ≤60 s)"),
43
  outputs=gr.Textbox(label="Transcript (Devanagari)", rtl=False),
44
  title="NepaliConformer — Nepali ASR for real telephone calls",
 
57
  )
58
 
59
  if __name__ == "__main__":
60
+ demo.launch(ssr_mode=False)