Spaces:
Runtime error
Runtime error
Download utils/jwt_reader.py from IAGeneral/vidu: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/spaces/IAGeneral/vidu/resolve/refs%2Fpr%2F1/utils/jwt_reader.py
- Command line
-
hf download hf://spaces/IAGeneral/vidu@refs/pr/1/utils/jwt_reader.py
-
curl -L -o jwt_reader.py https://huggingface.co/spaces/IAGeneral/vidu/resolve/refs%2Fpr%2F1/utils/jwt_reader.py
308 Bytes
| def read_jwt_from_file(file_path): | |
| try: | |
| with open(file_path, "r") as file: | |
| jwt_token = file.read().strip() | |
| return jwt_token | |
| except FileNotFoundError: | |
| print(f"File not found: {file_path}") | |
| except IOError as e: | |
| print(f"Error reading file: {e}") | |