Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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']
|