Spaces:
Runtime error
Runtime error
Download src/utils/helpers.py from hello-yaaash25/zenith: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/spaces/hello-yaaash25/zenith/resolve/main/src/utils/helpers.py
- Command line
-
hf download hf://spaces/hello-yaaash25/zenith/src/utils/helpers.py
-
curl -L -o helpers.py https://huggingface.co/spaces/hello-yaaash25/zenith/resolve/main/src/utils/helpers.py
411 Bytes
| def log_message(message: str) -> None: | |
| """Logs a message to the console.""" | |
| print(f"[LOG] {message}") | |
| def format_data(data: dict) -> str: | |
| """Formats a dictionary into a string for display.""" | |
| return "\n".join(f"{key}: {value}" for key, value in data.items()) | |
| def handle_error(error: Exception) -> None: | |
| """Handles errors by logging them.""" | |
| log_message(f"Error occurred: {str(error)}") |