cdactvm commited on
Commit
e2d73c6
·
verified ·
1 Parent(s): c9e64c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,9 +46,9 @@ def sel_lng(lng, mic=None, file=None):
46
  else:
47
  return "You must either provide a mic recording or a file"
48
 
49
- if lng == "hindi_old":
50
  return transcribe_hindi_old(audio)
51
- elif lng == "hindi_new":
52
  return transcribe_hindi_new(audio)
53
 
54
  # demo=gr.Interface(
@@ -68,7 +68,7 @@ demo=gr.Interface(
68
 
69
  inputs=[
70
  gr.Dropdown([
71
- "hindi_new","hindi_old"],label="Select Language"),
72
  gr.Audio(sources=["microphone","upload"], type="filepath"),
73
  ],
74
  outputs=[
 
46
  else:
47
  return "You must either provide a mic recording or a file"
48
 
49
+ if lng == "model_1":
50
  return transcribe_hindi_old(audio)
51
+ elif lng == "model_2":
52
  return transcribe_hindi_new(audio)
53
 
54
  # demo=gr.Interface(
 
68
 
69
  inputs=[
70
  gr.Dropdown([
71
+ "model_1","model_2"],label="Select Language"),
72
  gr.Audio(sources=["microphone","upload"], type="filepath"),
73
  ],
74
  outputs=[