github-actions[bot]
Automated deployment from GitHub Actions: a9d5a91de63ad7224bafe6039fb2b7479388fbf4
0a8c81b Download test_agent.py from VLTA-AI/dropshop: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/VLTA-AI/dropshop/resolve/main/test_agent.py
- Command line
-
hf download hf://spaces/VLTA-AI/dropshop/test_agent.py
-
curl -L -o test_agent.py https://huggingface.co/spaces/VLTA-AI/dropshop/resolve/main/test_agent.py
481 Bytes
| import json | |
| from src.agents.selector_agent import process_sourcing_event | |
| data = { | |
| "productIdeaId": "idea_test123", | |
| "sourceUrl": "https://detail.1688.com/offer/715610237937.html", | |
| "priceCny": 25.00, | |
| "retailPriceUsd": 49.99, | |
| "lengthCm": 20, | |
| "widthCm": 15, | |
| "heightCm": 10, | |
| "actualWeightKg": 0.3, | |
| "salesVolume": 500 | |
| } | |
| try: | |
| result = process_sourcing_event(data) | |
| print(json.dumps(result)) | |
| except Exception as e: | |
| import traceback | |
| traceback.print_exc() | |