14 lines
289 B
Python
14 lines
289 B
Python
import requests
|
|
import json
|
|
|
|
url = "http://localhost:5001/text-to-blendshapes"
|
|
data = {
|
|
"text": "你好",
|
|
"language": "zh-CN"
|
|
}
|
|
|
|
print("发送测试请求...")
|
|
response = requests.post(url, json=data)
|
|
print(f"状态码: {response.status_code}")
|
|
print(f"响应: {response.json()}")
|