| 1234567891011121314 |
- import requests
- import logging
- logging.basicConfig(level=logging.INFO, force=True,format='%(asctime)s - %(levelname)s - %(message)s')
- logging.info("app starting!")
- res = requests.post("http://localhost:9876/api/aitag/v1/tagging", json={
- # "app_id": "test_app",
- # "timestamp": 1234567890,
- # "sign": "test_sign",
- "business_attr": "test_attr",
- "phrase": "职业:水产养殖人员 投向:海水养殖 用途:个人经营"
- })
- logging.info(res.text)
|