Spaces:
Sleeping
Sleeping
Dhahlan2000
commited on
Commit
•
09ecec6
1
Parent(s):
c7c13ae
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def conversation_predict(input_text):
|
|
116 |
|
117 |
def ai_predicted(user_input):
|
118 |
user_input = translate_Singlish_to_sinhala(user_input)
|
119 |
-
print("You(English): ", user_input,"\n")
|
120 |
# user_input = transliterate_to_sinhala(user_input)
|
121 |
# print("You(Sinhala): ", user_input,"\n")
|
122 |
# user_input = translate_sinhala_to_english(user_input)
|
@@ -127,10 +127,10 @@ def ai_predicted(user_input):
|
|
127 |
|
128 |
# Split the AI response into separate lines
|
129 |
# ai_response_lines = ai_response.split("</s>")
|
130 |
-
print("AI(English): ", ai_response,"\n")
|
131 |
|
132 |
response = translate_english_to_sinhala(ai_response)
|
133 |
-
print("AI(Sinhala): ", response,"\n")
|
134 |
response = transliterate_from_sinhala(response)
|
135 |
print(response)
|
136 |
|
|
|
116 |
|
117 |
def ai_predicted(user_input):
|
118 |
user_input = translate_Singlish_to_sinhala(user_input)
|
119 |
+
# print("You(English): ", user_input,"\n")
|
120 |
# user_input = transliterate_to_sinhala(user_input)
|
121 |
# print("You(Sinhala): ", user_input,"\n")
|
122 |
# user_input = translate_sinhala_to_english(user_input)
|
|
|
127 |
|
128 |
# Split the AI response into separate lines
|
129 |
# ai_response_lines = ai_response.split("</s>")
|
130 |
+
# print("AI(English): ", ai_response,"\n")
|
131 |
|
132 |
response = translate_english_to_sinhala(ai_response)
|
133 |
+
# print("AI(Sinhala): ", response,"\n")
|
134 |
response = transliterate_from_sinhala(response)
|
135 |
print(response)
|
136 |
|