oelu's picture
Create app.py
d9b7894 verified
raw
history blame contribute delete
563 Bytes
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()