Download test_app.py from shim5/mirrors: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/shim5/mirrors/resolve/main/test_app.py
- Command line
-
hf download hf://spaces/shim5/mirrors/test_app.py
-
curl -L -o test_app.py https://huggingface.co/spaces/shim5/mirrors/resolve/main/test_app.py
461 Bytes
| # -*- coding: utf-8 -*- | |
| """ | |
| Test version of ΧΧ¨ΧΧΧͺ (Mirrors) app for local development | |
| Uses lightweight model to avoid hanging on heavy model loading | |
| """ | |
| import os | |
| # Force lightweight model for local testing | |
| os.environ["FORCE_LIGHT_MODEL"] = "1" | |
| # Import the main app after setting the environment variable | |
| from app import MirautrApp, main | |
| if __name__ == "__main__": | |
| print("π§ͺ Running ΧΧ¨ΧΧΧͺ in test mode with lightweight model...") | |
| main() |