| from transformers import pipeline | |
| pipe= pipeline("translation", model="en2sw") | |
| text="I am calling from tax office" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |
| #Jag ringer från skattekontoret |
| from transformers import pipeline | |
| pipe= pipeline("translation", model="en2sw") | |
| text="I am calling from tax office" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |
| #Jag ringer från skattekontoret |