Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-101
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
Sachith Fernando
2020-101
Commits
37759908
Commit
37759908
authored
Jan 10, 2021
by
I.K Seneviratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Committing the random commit.
parent
3e85b92f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
FirstApp/automation_process.py
FirstApp/automation_process.py
+5
-5
FirstApp/logic/batch_process.py
FirstApp/logic/batch_process.py
+2
-2
No files found.
FirstApp/automation_process.py
View file @
37759908
...
...
@@ -104,11 +104,11 @@ def automation_process(lecturer, subject, subject_code, video_length="00:20:00")
# save the lecturer audio
for
i
in
range
(
100
):
print
(
'outer loop: '
,
i
)
for
j
in
range
(
10000
):
print
(
'inner loop: '
,
j
)
#
for i in range(100):
#
print('outer loop: ', i)
#
#
for j in range(10000):
#
print('inner loop: ', j)
# start the batch processing for lecture summarization component
...
...
FirstApp/logic/batch_process.py
View file @
37759908
...
...
@@ -15,13 +15,13 @@ def student_behavior_batch_process(video_id, video_name):
if
activity_resp
.
json
()[
'response'
]:
# call the emotion process
emotion_resp
=
requests
.
get
(
'http://127.0.0.1:8000/process-lecture-emotion/
?lecture_video_name=
'
,
params
=
{
'lecture_video_name'
:
video_name
,
'lecture_video_id'
:
video_id
})
emotion_resp
=
requests
.
get
(
'http://127.0.0.1:8000/process-lecture-emotion/'
,
params
=
{
'lecture_video_name'
:
video_name
,
'lecture_video_id'
:
video_id
})
# if the emotion process is success
if
emotion_resp
.
json
()[
'response'
]:
# call the gaze process
gaze_resp
=
requests
.
get
(
'http://127.0.0.1:8000/process-lecture-gaze-estimation/
?lecture_video_name=
'
,
params
=
{
'lecture_video_name'
:
video_name
,
'lecture_video_id'
:
video_id
})
gaze_resp
=
requests
.
get
(
'http://127.0.0.1:8000/process-lecture-gaze-estimation/'
,
params
=
{
'lecture_video_name'
:
video_name
,
'lecture_video_id'
:
video_id
})
# if the gaze estimation process is successful
if
gaze_resp
.
json
()[
'response'
]:
...
...
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