Spaces:
Runtime error
Runtime error
import gradio as gr | |
import modal | |
# Load your deployed Modal class | |
WhisperModel = modal.Cls.from_name("whisper-app", "WhisperModel") | |
# Define function to call remote transcribe | |
def transcribe_audio(url): | |
instance = WhisperModel() # creates an instance | |
return instance.transcribe.remote(url) | |
# Launch Gradio UI | |
gr.Interface(fn=transcribe_audio, inputs="text", outputs="text").launch() | |