我正在尝试基于网络上的API添加越南语(link)
但是,响应是504-网关超时。这是代码:
import requests
url = "http://api.openfpt.vn/vnaccent/add"
headers = {
'api_key': "****************",
'Cache-Control': "no-cache"
}
payload = {'text': 'do la mot nguoi dan ba dam dang'}
response = requests.get(url,headers=headers, data=payload)
print(response.text)
如何解决?