Dhahlan2000 commited on
Commit
dfaa287
1 Parent(s): d119d56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,9 +74,9 @@ def ai_predicted(user_input):
74
  "inputs": user_input,
75
  })
76
  # ai_response = conversation_predict(user_input)
77
- ai_response_lines = ai_response.split("</s>")
78
 
79
- response = translate_english_to_sinhala(ai_response_lines[-1])
80
  response = transliterate_from_sinhala(response)
81
  return response
82
 
 
74
  "inputs": user_input,
75
  })
76
  # ai_response = conversation_predict(user_input)
77
+ # ai_response_lines = ai_response.split("</s>")
78
 
79
+ response = translate_english_to_sinhala(ai_response)
80
  response = transliterate_from_sinhala(response)
81
  return response
82