Spaces:
Runtime error
Runtime error
Download src/media/bytes_loader.py from AiCoderv2/app-knmojt-13: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/spaces/AiCoderv2/app-knmojt-13/resolve/main/src/media/bytes_loader.py
- Command line
-
hf download hf://spaces/AiCoderv2/app-knmojt-13/src/media/bytes_loader.py
-
curl -L -o bytes_loader.py https://huggingface.co/spaces/AiCoderv2/app-knmojt-13/resolve/main/src/media/bytes_loader.py
205 Bytes
| # | |
| # SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| async def load_file_bytes(file_path): | |
| with open(file_path, 'rb') as stream: | |
| return stream.read() |