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
02e000a2
Commit
02e000a2
authored
Sep 22, 2020
by
LiniEisha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit for summarizations
parent
b000d202
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
1 deletion
+52
-1
.idea/misc.xml
.idea/misc.xml
+3
-0
FirstApp/templates/FirstApp/template.html
FirstApp/templates/FirstApp/template.html
+14
-0
FirstApp/views.py
FirstApp/views.py
+1
-0
LectureSummarizingApp/templates/summarization.html
LectureSummarizingApp/templates/summarization.html
+10
-0
LectureSummarizingApp/urls.py
LectureSummarizingApp/urls.py
+19
-0
LectureSummarizingApp/views.py
LectureSummarizingApp/views.py
+4
-0
integrated_slpes/urls.py
integrated_slpes/urls.py
+1
-1
No files found.
.idea/misc.xml
View file @
02e000a2
...
...
@@ -4,4 +4,7 @@
<option
name=
"languageLevel"
value=
"ES6"
/>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.7"
project-jdk-type=
"Python SDK"
/>
<component
name=
"PyCharmProfessionalAdvertiser"
>
<option
name=
"shown"
value=
"true"
/>
</component>
</project>
\ No newline at end of file
FirstApp/templates/FirstApp/template.html
View file @
02e000a2
...
...
@@ -80,6 +80,20 @@
</div>
</li>
<!-- Nav Item - Pages Collapse Menu -->
<li
class=
"nav-item"
>
<a
class=
"nav-link collapsed"
href=
"#"
data-toggle=
"collapse"
data-target=
"#collapseThree"
aria-expanded=
"true"
aria-controls=
"collapseThree"
>
<i
class=
"fas fa-fw fa-cog"
></i>
<span>
Lecture
</span>
</a>
<div
id=
"collapseThree"
class=
"collapse"
aria-labelledby=
"headingThree"
data-parent=
"#accordionSidebar"
>
<div
class=
"bg-white py-2 collapse-inner rounded"
>
<h6
class=
"collapse-header"
>
Components:
</h6>
<a
class=
"collapse-item"
href=
"/summary/summarization"
>
Summarization
</a>
</div>
ac
</div>
</li>
<!-- Nav Item - Utilities Collapse Menu -->
<li
class=
"nav-item"
>
<a
class=
"nav-link collapsed"
href=
"#"
data-toggle=
"collapse"
data-target=
"#collapseUtilities"
aria-expanded=
"true"
aria-controls=
"collapseUtilities"
>
...
...
FirstApp/views.py
View file @
02e000a2
...
...
@@ -127,6 +127,7 @@ def hello(request):
duration
=
int
(
frame_count
/
fps
)
durations
.
append
(
duration
)
videoName
=
os
.
path
.
basename
(
videoPath
)
videoName
=
os
.
path
.
basename
(
videoPath
)
# videoName = videos.append(os.path.basename(videoPath))
durationObj
=
datetime
.
timedelta
(
seconds
=
duration
)
video
.
path
=
videoPath
...
...
LectureSummarizingApp/templates/summarization.html
0 → 100644
View file @
02e000a2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Summarization
</title>
</head>
<body>
<p>
This is summarization
</p>
</body>
</html>
\ No newline at end of file
LectureSummarizingApp/urls.py
0 → 100644
View file @
02e000a2
from
django.urls
import
path
,
re_path
,
include
from
django.conf.urls
import
url
from
rest_framework
import
routers
from
.
import
views
# from . import api
router
=
routers
.
DefaultRouter
()
# router.register(r'^register', views.RegisterViewSet)
# router.register(r'^createImage', views.ImageViewSet)
urlpatterns
=
[
path
(
'/summarization'
,
views
.
summarization
),
# routers
# path('', include(router.urls)),
path
(
'api-auth/'
,
include
(
'rest_framework.urls'
,
namespace
=
'rest_framework'
))
]
from
rest_framework.urlpatterns
import
format_suffix_patterns
LectureSummarizingApp/views.py
View file @
02e000a2
from
django.shortcuts
import
render
# Create your views here.
def
summarization
(
request
):
return
render
(
request
,
"LectureSummarizingApp/summarization.html"
)
\ No newline at end of file
integrated_slpes/urls.py
View file @
02e000a2
...
...
@@ -22,5 +22,5 @@ urlpatterns = [
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
''
,
include
(
'FirstApp.urls'
)),
path
(
'attendance/'
,
include
(
'AttendanceApp.urls'
)),
path
(
'lecturer/'
,
include
(
'MonitorLecturerApp.urls'
))
path
(
'lecturer/'
,
include
(
'MonitorLecturerApp.urls'
))
,
]
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