mcp-server-track / gradio_app.py
Dreamcatcher23's picture
Upload 2 files
030266f verified
raw
history blame contribute delete
408 Bytes
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()