Spaces:
Sleeping
Sleeping
Download editor.py from ndwdgda/cryptotrader: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/ndwdgda/cryptotrader/resolve/main/editor.py
- Command line
-
hf download hf://spaces/ndwdgda/cryptotrader/editor.py
-
curl -L -o editor.py https://huggingface.co/spaces/ndwdgda/cryptotrader/resolve/main/editor.py
309 Bytes
| import sys | |
| import os | |
| file_path = sys.argv[1] | |
| with open(file_path, 'r') as f: | |
| lines = f.readlines() | |
| with open(file_path, 'w') as f: | |
| for line in lines: | |
| if '20bf7f03' in line and line.startswith('pick'): | |
| f.write(line.replace('pick', 'edit')) | |
| else: | |
| f.write(line) | |