Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
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
21_22-J 38
21_22-J 38
Commits
71452676
Commit
71452676
authored
Jan 03, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create color model and routs
parent
2b6e8d58
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
10 deletions
+23
-10
.idea/21_22j-38.iml
.idea/21_22j-38.iml
+1
-0
API/models/clorModel.py
API/models/clorModel.py
+9
-0
API/routes/__init__.py
API/routes/__init__.py
+1
-1
API/routes/color.py
API/routes/color.py
+9
-0
API/routes/test.py
API/routes/test.py
+0
-6
backend/IT18218640/keyword_spotting_service.py
backend/IT18218640/keyword_spotting_service.py
+3
-3
No files found.
.idea/21_22j-38.iml
View file @
71452676
...
...
@@ -3,6 +3,7 @@
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/venv"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/API/venv"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.9"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
...
...
API/models/clorModel.py
0 → 100644
View file @
71452676
from
db.dbConnection
import
get_data_sql
#
#
def
getColorActivities
():
qry
=
'SELECT * FROM coloractivities'
name
=
get_data_sql
(
qry
)
.
to_json
()
return
name
\ No newline at end of file
API/routes/__init__.py
View file @
71452676
...
...
@@ -2,4 +2,4 @@ from flask import Blueprint
routes
=
Blueprint
(
'routes'
,
__name__
)
from
.reading
import
*
from
.test
import
*
\ No newline at end of file
from
.color
import
*
API/routes/color.py
0 → 100644
View file @
71452676
from
.
import
routes
# from API.db.dbConnection import get_data_sql
from
models.clorModel
import
getColorActivities
#
#
@
routes
.
route
(
"/colorActivities"
,
methods
=
[
'GET'
])
def
ColorActivity
():
return
getColorActivities
()
\ No newline at end of file
API/routes/test.py
deleted
100644 → 0
View file @
2b6e8d58
from
.
import
routes
@
routes
.
route
(
"/y"
)
def
test
():
return
"list of yyyyy"
backend/IT18218640/keyword_spotting_service.py
View file @
71452676
...
...
@@ -71,8 +71,8 @@ def Keyword_Spotting_service():
if
__name__
==
"__main__"
:
kss
=
Keyword_Spotting_service
()
keyword1
=
kss
.
predict
(
"test/0
ab3b47d
_nohash_0.wav"
)
keyword2
=
kss
.
predict
(
"test/blu7.wav"
)
keyword1
=
kss
.
predict
(
"test/0
0f0204f
_nohash_0.wav"
)
#
keyword2 = kss.predict("test/blu7.wav")
print
(
f
"Predicted Keywords: {keyword1}"
)
print
(
f
"Predicted Keywords: {keyword2}"
)
\ No newline at end of file
# print(f"Predicted Keywords: {keyword2}")
\ No newline at end of file
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