Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,6 @@ def transcribe(audio,lang = "hindi"):
|
|
| 21 |
return transcriber_odia({"sampling_rate": sr, "raw": y})["text"]
|
| 22 |
|
| 23 |
|
| 24 |
-
demo = gr.Interface(
|
| 25 |
-
transcribe,
|
| 26 |
-
[gr.Audio(source="microphone"), gr.Radio(["hindi","bangali","odia"])]
|
| 27 |
-
"text")
|
| 28 |
|
| 29 |
demo.launch()
|
|
|
|
| 21 |
return transcriber_odia({"sampling_rate": sr, "raw": y})["text"]
|
| 22 |
|
| 23 |
|
| 24 |
+
demo = gr.Interface(fn=transcribe, inputs = [gr.Audio(source="microphone"), gr.Radio(["hindi","bangali","odia"])] , outputs = "text")
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
demo.launch()
|