Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,6 @@ 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",
|
33 |
headers = {
|
34 |
"accept": "*/*",
|
35 |
"accept-language": "en-US,en;q=0.9,he;q=0.8,ha;q=0.7",
|
|
|
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 |
headers = {
|
32 |
"accept": "*/*",
|
33 |
"accept-language": "en-US,en;q=0.9,he;q=0.8,ha;q=0.7",
|