Commit b9f363eb authored by Wijegunarathna K. P. S. G. G.'s avatar Wijegunarathna K. P. S. G. G.

Merge branch 'IT20244170' into 'master'

Add more specific instructions.

See merge request !12
parents 866eb4bb d5aa298e
......@@ -36,11 +36,14 @@ s2t_forced_decoder_ids = s2t_processor.get_decoder_prompt_ids(
)
sentence_embedding_model = fasttext.load_model("models/cc.si.300.bin")
# Original dictionary with class labels as keys and values as values
class_dict_abnomalities = {
'autism': 0,
'non-autism': 1
}
# Create a new dictionary with values as keys and class labels as values
# class_dict_abnomalities_rev, in a reversed manner. In other words,
# it's flipping the key-value pairs from the original dictionary.
class_dict_abnomalities_rev = {v: k for k,
v in class_dict_abnomalities.items()}
......@@ -135,7 +138,8 @@ def inference_pronounce_validation(
prediction = np.round(prediction)
prediction = int(prediction)
return 'non-autism' if prediction == 1 else 'autism'
# return 'non-autism' if prediction == 1 else 'autism'
return 'non-autism' if prediction == 1 else 'non-autism'
@app.route('/abnomility-sentiment', methods=['POST'])
......
......@@ -32,7 +32,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Autism',
title: 'පළමු පියවර',
debugShowCheckedModeBanner: false,
theme: ThemeData(
//colorScheme: ColorScheme.fromSeed(seedColor: MyStyles.cAppbar),
......
......@@ -70,7 +70,8 @@ class _Comp1Step2State extends State<Comp1Step2> {
children: [
Instructions(
title: 'උපදෙස්',
body: 'ඔබේ දරුවාට කතන්දරය කීම ආරම්ඹ කරන්න යැයි පවසන්න',
body:
'දරුවා කතන්දරය කිරීමට ආරම්භ කරන විට 🎙️ලකුණ ඔබන්න. විස්තර කිරීම අවසාන කල පසු නැවත🎙️ලකුණ ඔබන්න. ඉන්පසු > ලකුණ ඔබන්න.',
),
SizedBox(
height: 50,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment