I am trying to add Vietnamese accent based on API on the web( link )
However, the response was 504-Gateway Timeout. Here is the code:
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)
How to fix it?
您无法修复它,因为504不是您的问题,而是服务器端。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.