Spaces:
Build error
Build error
Download bin/reframe from Ella2323/Positive-Reframing: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/spaces/Ella2323/Positive-Reframing/resolve/main/bin/reframe
- Command line
-
hf download hf://spaces/Ella2323/Positive-Reframing/bin/reframe
-
curl -L -o reframe https://huggingface.co/spaces/Ella2323/Positive-Reframing/resolve/main/bin/reframe
643 Bytes
| #!/usr/bin/env python | |
| import argparse | |
| from transformers import pipeline | |
| from transformers import AutoModelForSeq2SeqLM | |
| from transformers import AutoTokenizer | |
| def get_args(): | |
| """ args from input | |
| """ | |
| parser = argparse.ArgumentParser(description='HSIC-Bottleneck research') | |
| parser.add_argument('-ipt', '--input', required=True, | |
| type=str, help='input path') | |
| args = parser.parse_args() | |
| return args | |
| def main(): | |
| args = get_args() | |
| input_file = args.input | |
| with open(input_file, 'r') as file: | |
| data = file.read().rstrip() | |
| print(data) | |
| if __name__ == '__main__': | |
| main() |