Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,6 @@ def translate(text,lang):
|
|
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 |
-
method = "POST",
|
34 |
mode = "cors",
|
35 |
credentials = "include",
|
36 |
headers = {
|
|
|
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",
|
35 |
headers = {
|