Spaces:
Runtime error
Runtime error
import whisper | |
import gradio as gr | |
import os | |
os.system("apt-get update && apt-get install -y ffmpeg") | |
model = whisper.load_model("Flurin17/whisper-large-v3-turbo-swiss-german") | |
def transcribe(audio): | |
result = model.transcribe(audio, language="de") | |
return result["text"] | |
gr.Interface(fn=transcribe, | |
inputs=gr.Audio(source="upload", type="filepath"), | |
outputs="text", | |
title="Swiss German Whisper Legal", | |
description="Transkription von Schweizerdeutsch zu Hochdeutsch für juristische Zwecke").launch() | |