| import gradio as gr | |
| from asr import transcribe | |
| def main(): | |
| asr_interface = gr.Interface( | |
| fn=transcribe, | |
| inputs=gr.Audio(type="filepath"), | |
| outputs="text", | |
| title="Faroese ASR Demo", | |
| description="Automatic Speech Recognition for Faroese" | |
| ) | |
| asr_interface.launch() | |
| if __name__ == "__main__": | |
| main() | |