Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from asr import transcribe
|
3 |
+
|
4 |
+
def main():
|
5 |
+
asr_interface = gr.Interface(
|
6 |
+
fn=transcribe,
|
7 |
+
inputs=gr.Audio(type="filepath"),
|
8 |
+
outputs="text",
|
9 |
+
title="Faroese ASR Demo",
|
10 |
+
description="Automatic Speech Recognition for Faroese"
|
11 |
+
)
|
12 |
+
|
13 |
+
asr_interface.launch()
|
14 |
+
|
15 |
+
if __name__ == "__main__":
|
16 |
+
main()
|