Spaces:
Paused
Paused
Download test_logging.py from Fred808/Desk-Back2: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/Fred808/Desk-Back2/resolve/main/test_logging.py
- Command line
-
hf download hf://spaces/Fred808/Desk-Back2/test_logging.py
-
curl -L -o test_logging.py https://huggingface.co/spaces/Fred808/Desk-Back2/resolve/main/test_logging.py
324 Bytes
| import sys | |
| from datetime import datetime | |
| # Write directly to a file | |
| with open('test_output.txt', 'w') as f: | |
| f.write(f"Test run at {datetime.now()}\n") | |
| f.write(f"Python version: {sys.version}\n") | |
| f.write("If you can read this, file writing is working\n") | |
| print("Test completed - check test_output.txt") |