[英]504-Gateway Timeout [Python]
I am trying to add Vietnamese accent based on API on the web( link )我正在尝试根据网络上的 API 添加越南口音(链接)
However, the response was 504-Gateway Timeout.但是,响应是 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不是您的问题,而是服务器端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.