Spaces:
Sleeping
Sleeping
Download test_inference.py from disha2005/data-cleaning-env-final: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/disha2005/data-cleaning-env-final/resolve/main/test_inference.py
- Command line
-
hf download hf://spaces/disha2005/data-cleaning-env-final/test_inference.py
-
curl -L -o test_inference.py https://huggingface.co/spaces/disha2005/data-cleaning-env-final/resolve/main/test_inference.py
583 Bytes
| import subprocess | |
| print("🚀 Running inference.py test...\n") | |
| try: | |
| result = subprocess.run( | |
| ["python", "inference.py"], | |
| capture_output=True, | |
| text=True, | |
| timeout=60 | |
| ) | |
| print("✅ STDOUT:\n") | |
| print(result.stdout) | |
| if result.stderr: | |
| print("\n⚠️ STDERR:\n") | |
| print(result.stderr) | |
| if result.returncode == 0: | |
| print("\n🎉 TEST PASSED: inference.py ran successfully") | |
| else: | |
| print(f"\n❌ TEST FAILED: Exit code {result.returncode}") | |
| except Exception as e: | |
| print("💥 Test crashed:", e) |