mukaist's picture
Update app.py
d9be7e9 verified
raw
history blame contribute delete
654 Bytes
import gradio as gr
import whisper
def convert_to_text(audio_path : str) -> str:
model = whisper.load_model("base")
result = model.transcribe(audio_path)
return result["text"]
audio_input = gr.components.Audio(type="filepath")
iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text",title="Hepzeka.com | AUDIO - TEXT ",
description="Sesi Yükleyin ve 'GONDER' düğmesine basın",
#theme='freddyaboulton/dracula_revamped'
theme = gr.themes.Soft(),
)
iface.launch()