Spaces:
Runtime error
Runtime error
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="AUDIO -TEXTO", | |
description="Subir el Audio y Presionar el botón 'SUBMIT'\ | |
", | |
#theme='freddyaboulton/dracula_revamped' | |
theme = gr.themes.Soft(), | |
css='div {margin-left: auto; margin-right: auto; width: 100%;\ | |
background-image: url("https://drive.google.com/file/d/163uypH4ktgCRoa3ZCWcBrQt_qtz1rcPN/view?usp=drive_link"); repeat 0 0;}')) | |
iface.launch() |