Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,6 @@ else:
|
|
27 |
def translate(text,lang):
|
28 |
resp = requests.post(
|
29 |
url = "https://www.bing.com/ttranslatev3?isVertical=1&&IG=13172331D0494B12ABFA8F4454EEB479&IID=translator.5026",
|
30 |
-
referrer = "https://www.bing.com/translator?to=en",
|
31 |
-
referrerPolicy = "origin-when-cross-origin",
|
32 |
data = f"&fromLang=auto-detect&to={lang}&token=cdkbEXg93_iQE28MFPv9ScrPY_fs2OAw&key=1722124106496&text={text}&tryFetchingGenderDebiasedTranslations=true",
|
33 |
mode = "cors",
|
34 |
credentials = "include",
|
|
|
27 |
def translate(text,lang):
|
28 |
resp = requests.post(
|
29 |
url = "https://www.bing.com/ttranslatev3?isVertical=1&&IG=13172331D0494B12ABFA8F4454EEB479&IID=translator.5026",
|
|
|
|
|
30 |
data = f"&fromLang=auto-detect&to={lang}&token=cdkbEXg93_iQE28MFPv9ScrPY_fs2OAw&key=1722124106496&text={text}&tryFetchingGenderDebiasedTranslations=true",
|
31 |
mode = "cors",
|
32 |
credentials = "include",
|