Spaces:
Runtime error
Runtime error
Download models/transcript.py from ricardo-lsantos/transcript_small_whispher: direct link, hf CLI and curl.
- Browser
- Download file 161 Bytes
-
https://huggingface.co/spaces/ricardo-lsantos/transcript_small_whispher/resolve/main/models/transcript.py
- Command line
-
hf download hf://spaces/ricardo-lsantos/transcript_small_whispher/models/transcript.py
-
curl -L -o transcript.py https://huggingface.co/spaces/ricardo-lsantos/transcript_small_whispher/resolve/main/models/transcript.py
161 Bytes
| def save_transcript(prediction, output_file): | |
| ## Save prediction to subtitles file format | |
| with open(output_file, "w") as f: | |
| f.write(prediction) | |