Spaces:
Runtime error
Runtime error
Download fairseq/examples/wav2vec/unsupervised/scripts/copy_labels.py from OFA-Sys/OFA-Visual_Grounding: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/OFA-Sys/OFA-Visual_Grounding/resolve/main/fairseq/examples/wav2vec/unsupervised/scripts/copy_labels.py
- Command line
-
hf download hf://spaces/OFA-Sys/OFA-Visual_Grounding/fairseq/examples/wav2vec/unsupervised/scripts/copy_labels.py
-
curl -L -o copy_labels.py https://huggingface.co/spaces/OFA-Sys/OFA-Visual_Grounding/resolve/main/fairseq/examples/wav2vec/unsupervised/scripts/copy_labels.py
298 Bytes
| #!/usr/bin/env python3 -u | |
| # Copyright (c) Facebook, Inc. and its affiliates. | |
| # | |
| # This source code is licensed under the MIT license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| import sys | |
| for idx, line in enumerate(sys.stdin): | |
| print(f"utt{idx:010d} {line}", end="") | |