Spaces:
Sleeping
Sleeping
Download debug_load.py from PhilipL/InfoSecAI-finalProj: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/PhilipL/InfoSecAI-finalProj/resolve/main/debug_load.py
- Command line
-
hf download hf://spaces/PhilipL/InfoSecAI-finalProj/debug_load.py
-
curl -L -o debug_load.py https://huggingface.co/spaces/PhilipL/InfoSecAI-finalProj/resolve/main/debug_load.py
450 Bytes
| import sys | |
| import os | |
| # Add the project directory to path | |
| sys.path.append('/Users/hsiehchin-chuan/Desktop/InfoSec-finalProj/InfoSecAI-finalProj') | |
| try: | |
| from models import load_models_and_data, AI_READY | |
| import models | |
| print("Attempting to load models...") | |
| load_models_and_data() | |
| print(f"AI_READY: {models.AI_READY}") | |
| except Exception as e: | |
| print(f"Error during loading: {e}") | |
| import traceback | |
| traceback.print_exc() | |