Dhahlan2000 commited on
Commit
36040e4
·
verified ·
1 Parent(s): 03fde36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def ai_predicted(user_input):
71
  user_input = transliterate_to_sinhala(user_input)
72
  user_input = translate_sinhala_to_english(user_input)
73
  response_json = query({
74
- "inputs": user_input,
75
  })
76
  if 'generated_text' in response_json[0]:
77
  ai_response = response_json[0]['generated_text']
 
71
  user_input = transliterate_to_sinhala(user_input)
72
  user_input = translate_sinhala_to_english(user_input)
73
  response_json = query({
74
+ "inputs": f"{user_input}",
75
  })
76
  if 'generated_text' in response_json[0]:
77
  ai_response = response_json[0]['generated_text']