github-actions[bot]
Automated deployment from GitHub Actions: a9d5a91de63ad7224bafe6039fb2b7479388fbf4
0a8c81b Download test_content_agent.py from VLTA-AI/dropshop: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/VLTA-AI/dropshop/resolve/main/test_content_agent.py
- Command line
-
hf download hf://spaces/VLTA-AI/dropshop/test_content_agent.py
-
curl -L -o test_content_agent.py https://huggingface.co/spaces/VLTA-AI/dropshop/resolve/main/test_content_agent.py
469 Bytes
| import json | |
| from src.agents.content_agent import generate_marketing_content | |
| idea_data = { | |
| "id": "idea_test123", | |
| "source_url": "https://detail.1688.com/offer/715610237937.html", | |
| "sales_volume": 500, | |
| "est_total_cost_cny": 25.0, | |
| "recommended_retail_price_usd": 49.99, | |
| "roi_score": 305.04, | |
| "status": "SELECTED" | |
| } | |
| try: | |
| result = generate_marketing_content(idea_data) | |
| print(json.dumps(result, indent=2)) | |
| except Exception as e: | |
| print(f"Error: {e}") | |