test_python / libs /transformer /get_transcript_gradio_api.py
minhpng's picture
add gradio client
3c36fb5
raw
history blame
295 Bytes
from gradio_client import Client, handle_file
def api_gradio_transcribe(url: str):
client = Client("hf-audio/whisper-large-v3-turbo")
result = client.predict(
inputs=handle_file(url),
task="transcribe",
api_name="/predict"
)
return result