Spaces:
Sleeping
Sleeping
Download test_keys.py from vansh-here/TradeSense-backend: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/vansh-here/TradeSense-backend/resolve/main/test_keys.py
- Command line
-
hf download hf://spaces/vansh-here/TradeSense-backend/test_keys.py
-
curl -L -o test_keys.py https://huggingface.co/spaces/vansh-here/TradeSense-backend/resolve/main/test_keys.py
485 Bytes
| import sys | |
| import os | |
| import json | |
| # Add the backend directory to sys.path | |
| sys.path.append(r'c:\Users\vansh\Desktop\Projects\backend') | |
| import main | |
| import query_router | |
| def test_strategy_keys(): | |
| print("\n--- TESTING SILVER STRATEGY KEYS ---") | |
| query = "if i bought 10000 rupees silver 2 years ago" | |
| parsed = query_router.route_query(query) | |
| result = main.perform_strategy(parsed) | |
| print(json.dumps(result, indent=2)) | |
| if __name__ == "__main__": | |
| test_strategy_keys() | |