Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-073
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
2022-073
2022-073
Commits
53b7b4fb
Commit
53b7b4fb
authored
Nov 14, 2022
by
Nilan Meegoda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'attention_new_ui' into 'master'
Attention new ui See merge request
!44
parents
57844861
b51ef1fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
web-app/backend/server.py
web-app/backend/server.py
+26
-0
No files found.
web-app/backend/server.py
View file @
53b7b4fb
...
...
@@ -530,6 +530,32 @@ def predictKnowledgeIq():
return
jsonify
({
'error'
:
'Error during pipeline execution'
})
return
jsonify
({
'result'
:
'test'
})
@
app
.
route
(
'/knowledgeIQScores/'
,
methods
=
[
'GET'
])
@
cross_origin
()
def
getKnowledgeIQscores
():
allData
=
db
.
db
[
'knowledgeIQScore'
]
.
find
()
dataJson
=
[]
for
data
in
allData
:
id
=
data
[
'_id'
]
activityName
=
data
[
'activityName'
]
candidateID
=
data
[
'candidateID'
]
questionIndex
=
data
[
'questionIndex'
]
accuracyScore
=
data
[
'accuracyScore'
]
similarityScore
=
data
[
'similarityScore'
]
expectedAnswer
=
data
[
'expectedAnswer'
]
refinedTranscript
=
data
[
'refinedTranscript'
]
dataDict
=
{
'id'
:
str
(
id
),
'activityName'
:
activityName
,
'candidateID'
:
candidateID
,
'questionIndex'
:
questionIndex
,
'accuracyScore'
:
accuracyScore
,
'similarityScore'
:
similarityScore
,
'expectedAnswer'
:
expectedAnswer
,
'refinedTranscript'
:
refinedTranscript
,
}
dataJson
.
append
(
dataDict
)
return
jsonify
(
dataJson
)
# @app.route("/testDB")
# def test():
...
...
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