Commit 02e000a2 authored by LiniEisha's avatar LiniEisha

initial commit for summarizations

parent b000d202
...@@ -4,4 +4,7 @@ ...@@ -4,4 +4,7 @@
<option name="languageLevel" value="ES6" /> <option name="languageLevel" value="ES6" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" /> <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> </project>
\ No newline at end of file
...@@ -80,6 +80,20 @@ ...@@ -80,6 +80,20 @@
</div> </div>
</li> </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 --> <!-- Nav Item - Utilities Collapse Menu -->
<li class="nav-item"> <li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUtilities" aria-expanded="true" aria-controls="collapseUtilities"> <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUtilities" aria-expanded="true" aria-controls="collapseUtilities">
......
...@@ -127,6 +127,7 @@ def hello(request): ...@@ -127,6 +127,7 @@ def hello(request):
duration = int(frame_count / fps) duration = int(frame_count / fps)
durations.append(duration) durations.append(duration)
videoName = os.path.basename(videoPath) videoName = os.path.basename(videoPath)
videoName = os.path.basename(videoPath)
# videoName = videos.append(os.path.basename(videoPath)) # videoName = videos.append(os.path.basename(videoPath))
durationObj = datetime.timedelta(seconds=duration) durationObj = datetime.timedelta(seconds=duration)
video.path = videoPath video.path = videoPath
......
<!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
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
from django.shortcuts import render from django.shortcuts import render
# Create your views here. # Create your views here.
def summarization(request):
return render(request, "LectureSummarizingApp/summarization.html")
\ No newline at end of file
...@@ -22,5 +22,5 @@ urlpatterns = [ ...@@ -22,5 +22,5 @@ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('', include('FirstApp.urls')), path('', include('FirstApp.urls')),
path('attendance/', include('AttendanceApp.urls')), path('attendance/', include('AttendanceApp.urls')),
path('lecturer/', include('MonitorLecturerApp.urls')) path('lecturer/', include('MonitorLecturerApp.urls')),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment