Spaces:
Runtime error
Runtime error
Download fix_encoding.py from codewithdeved/medicalvox-backend: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/spaces/codewithdeved/medicalvox-backend/resolve/main/fix_encoding.py
- Command line
-
hf download hf://spaces/codewithdeved/medicalvox-backend/fix_encoding.py
-
curl -L -o fix_encoding.py https://huggingface.co/spaces/codewithdeved/medicalvox-backend/resolve/main/fix_encoding.py
229 Bytes
| import codecs | |
| with codecs.open('requirements.txt', 'r', 'utf-16') as f: | |
| text = f.read() | |
| with codecs.open('requirements.txt', 'w', 'utf-8') as f: | |
| f.write(text) | |
| print("Successfully converted requirements.txt to UTF-8!") | |