Update app.py
Browse files
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.
|
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,
|