Updated translate template
added test file
This commit is contained in:
@@ -29,7 +29,8 @@ def translate(_input, lang='RU'):
|
||||
"commonJobParams": {},
|
||||
"timestamp": int(round(time.time() * 1000))
|
||||
},
|
||||
"id": 40890008
|
||||
"id": 40890009
|
||||
}
|
||||
)
|
||||
print(r.json())
|
||||
return r.json()['result']['translations'][0]['beams'][0]['postprocessed_sentence']
|
||||
|
||||
Reference in New Issue
Block a user