Spaces:
Runtime error
Runtime error
| from libretranslatepy import LibreTranslateAPI | |
| lt = LibreTranslateAPI("https://translate.argosopentech.com/") | |
| attempt_input = input("Enter input:") | |
| detected = lt.detect(attempt_input)[0]['language'] | |
| print(detected) | |
| print(lt.translate(attempt_input, detected, "en")) | |