Download OcrApp/function.py from sanket1234/ocr: direct link, hf CLI and curl.
- Browser
- Download file 189 Bytes
-
https://huggingface.co/sanket1234/ocr/resolve/main/OcrApp/function.py
- Command line
-
hf download hf://sanket1234/ocr/OcrApp/function.py
-
curl -L -o function.py https://huggingface.co/sanket1234/ocr/resolve/main/OcrApp/function.py
189 Bytes
| def handle_uploaded_file(f): | |
| with open('media/'+f.name, 'wb+') as destination: | |
| for chunk in f.chunks(): | |
| # print(chunk) | |
| destination.write(chunk) | |