Skip to content

Commit c72a3e3

Browse files
author
Emilio
committed
Add main program for interactive chatbot translation (#90)
1 parent 2137087 commit c72a3e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Translator/chatbot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ def __repr__(self):
1414
['Target', translated]
1515
]
1616
return tabulate(data, headers="firstrow", tablefmt="grid")
17+
18+
19+
if __name__ == "__main__":
20+
sentence = input("Enter a sentence: ")
21+
lang = input("Enter target language code (e.g., 'hi' for Hindi, 'es' for Spanish): ")
22+
print(TranslateClass(sentence, lang))
23+

0 commit comments

Comments
 (0)