Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -38,11 +38,14 @@ def translate(text,lang):
|
|
38 |
url = "https://www.bing.com/ttranslatev3",
|
39 |
params = {
|
40 |
'isVertical': '1',
|
|
|
41 |
'IID': 'translator.5026'
|
42 |
},
|
43 |
data = {
|
44 |
'fromLang': 'auto-detect',
|
45 |
'to': lang,
|
|
|
|
|
46 |
'text': text,
|
47 |
'tryFetchingGenderDebiasedTranslations': 'true'
|
48 |
},
|
|
|
38 |
url = "https://www.bing.com/ttranslatev3",
|
39 |
params = {
|
40 |
'isVertical': '1',
|
41 |
+
'IG': '25FEDD45BDB744CF85D101C01E6596C0',
|
42 |
'IID': 'translator.5026'
|
43 |
},
|
44 |
data = {
|
45 |
'fromLang': 'auto-detect',
|
46 |
'to': lang,
|
47 |
+
'token': 'MLfPKZhAXMWZirPdlpeEfN8DB58dZKR-',
|
48 |
+
'key': '1722119087131',
|
49 |
'text': text,
|
50 |
'tryFetchingGenderDebiasedTranslations': 'true'
|
51 |
},
|