Spaces:
Build error
Build error
Commit ·
6ae4840
1
Parent(s): 818df4c
Add necessary decorator to use ZeroGPU in HF
Browse filesFiles changed (2)
123456789"""Minimum code to run whisper-faster on Hugging Face"""import gradio as grfrom faster_whisper import WhisperModelmodel = WhisperModel("large-v3", device="cuda", compute_type="float16")def transcribe(gradio_input_one_return_audio_filepath: str):"""Makes a call to transcribe the audio"""segments, _ = model.transcribe(gradio_input_one_return_audio_filepath)1234567891011"""Minimum code to run whisper-faster on Hugging Face"""import gradio as grimport spacesfrom faster_whisper import WhisperModelmodel = WhisperModel("large-v3", device="cuda", compute_type="float16")@spaces.GPUdef transcribe(gradio_input_one_return_audio_filepath: str):"""Makes a call to transcribe the audio"""segments, _ = model.transcribe(gradio_input_one_return_audio_filepath)
1 unmodified line2341 unmodified linefaster-whisperctranslate2ffmpeg-python1 unmodified line23451 unmodified linefaster-whisperctranslate2ffmpeg-pythonspaces
app.py+2
requirements.txt+1