Add comments to backend app.py file.

parent 738ddc45
...@@ -36,11 +36,14 @@ s2t_forced_decoder_ids = s2t_processor.get_decoder_prompt_ids( ...@@ -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") 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 = { class_dict_abnomalities = {
'autism': 0, 'autism': 0,
'non-autism': 1 '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, class_dict_abnomalities_rev = {v: k for k,
v in class_dict_abnomalities.items()} v in class_dict_abnomalities.items()}
......
...@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget { ...@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
title: 'Autism', title: 'පළමු පියවර',
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
theme: ThemeData( theme: ThemeData(
//colorScheme: ColorScheme.fromSeed(seedColor: MyStyles.cAppbar), //colorScheme: ColorScheme.fromSeed(seedColor: MyStyles.cAppbar),
......
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