Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rp_server_one
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
Ranasinghe R.A.P.T
rp_server_one
Commits
4760847c
Commit
4760847c
authored
Apr 12, 2022
by
Pamal-Ranasinghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REST API configured
parent
99e14736
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
0 deletions
+20
-0
app.py
app.py
+8
-0
requirements.txt
requirements.txt
+0
-0
resources/__pycache__/routes.cpython-38.pyc
resources/__pycache__/routes.cpython-38.pyc
+0
-0
resources/__pycache__/speechExtraction.cpython-38.pyc
resources/__pycache__/speechExtraction.cpython-38.pyc
+0
-0
resources/routes.py
resources/routes.py
+4
-0
resources/speechExtraction.py
resources/speechExtraction.py
+8
-0
No files found.
app.py
View file @
4760847c
#import flask module
from
flask
import
Flask
from
flask_restful
import
Api
from
flask
import
Flask
from
resources.routes
import
initialize_routes
app
=
Flask
(
__name__
)
api
=
Api
(
app
)
#Test route
@
app
.
route
(
'/'
)
def
hello_world
():
return
'Hello World'
#initialize all the routes
initialize_routes
(
api
)
#Main function
if
__name__
==
'__main__'
:
app
.
run
()
\ No newline at end of file
requirements.txt
View file @
4760847c
B
aniso8601
==9.0.1
...
...
resources/__pycache__/routes.cpython-38.pyc
0 → 100644
View file @
4760847c
File added
resources/__pycache__/speechExtraction.cpython-38.pyc
0 → 100644
View file @
4760847c
File added
resources/routes.py
0 → 100644
View file @
4760847c
from
.speechExtraction
import
SpeechExtraction
def
initialize_routes
(
api
):
api
.
add_resource
(
SpeechExtraction
,
"/api/extraction"
)
\ No newline at end of file
resources/speechExtraction.py
0 → 100644
View file @
4760847c
from
flask_restful
import
Resource
import
speech_recognition
as
sr
import
moviepy.editor
as
mp
class
SpeechExtraction
(
Resource
):
def
get
(
self
):
return
'API is working'
\ 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