Spaces:
Runtime error
Runtime error
Download debug_orchestrator.py from raidoo/ai-bookkeeper-backend: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/raidoo/ai-bookkeeper-backend/resolve/main/debug_orchestrator.py
- Command line
-
hf download hf://spaces/raidoo/ai-bookkeeper-backend/debug_orchestrator.py
-
curl -L -o debug_orchestrator.py https://huggingface.co/spaces/raidoo/ai-bookkeeper-backend/resolve/main/debug_orchestrator.py
378 Bytes
| from app.ai.ml_classifier import classify_transaction | |
| from app.ai.orchestrator import clean_merchant_name | |
| import sys | |
| raw_desc = "ADOBE *CREATIVE CLOUD 800-833-6687 CA" | |
| clean_name = clean_merchant_name(raw_desc) | |
| print(f"Clean name: {clean_name}") | |
| try: | |
| res = classify_transaction(clean_name) | |
| print(f"ML Result: {res}") | |
| except Exception as e: | |
| print(f"ML Error: {e}") | |