Update app.py
Browse files
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 == "
|
| 50 |
return transcribe_hindi_old(audio)
|
| 51 |
-
elif lng == "
|
| 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 |
-
"
|
| 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=[
|