Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ASD_Detection
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-161
ASD_Detection
Commits
c0c00345
Commit
c0c00345
authored
Nov 02, 2023
by
Wijegunarathna K. P. S. G. G.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments to backend app.py file.
parent
738ddc45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Backend/app.py
Backend/app.py
+4
-1
Frontend/lib/main.dart
Frontend/lib/main.dart
+1
-1
No files found.
Backend/app.py
View file @
c0c00345
...
@@ -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
()}
...
...
Frontend/lib/main.dart
View file @
c0c00345
...
@@ -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),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment