khangey commited on
Commit
e451a2a
·
1 Parent(s): 68dfc67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def bing_translate(text: str, from_lang: str, to_lang: str):
42
  "X-ClientTraceId": str(uuid.uuid4()),
43
  }
44
  resp = requests.post(
45
- url="https://api.cognitive.microsofttranslator.com/translate",
46
  params={"api-version": "3.0", "from": from_lang, "to": to_lang},
47
  json=[{"text": text}],
48
  headers=headers,
 
42
  "X-ClientTraceId": str(uuid.uuid4()),
43
  }
44
  resp = requests.post(
45
+ url="https://api.niutrans.com/",
46
  params={"api-version": "3.0", "from": from_lang, "to": to_lang},
47
  json=[{"text": text}],
48
  headers=headers,