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
c624512c
Commit
c624512c
authored
Apr 24, 2022
by
Pamal-Ranasinghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aws operations are added
parent
97ee6874
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
resources/__pycache__/speechExtraction.cpython-38.pyc
resources/__pycache__/speechExtraction.cpython-38.pyc
+0
-0
resources/awsOperation.py
resources/awsOperation.py
+17
-0
resources/speechExtraction.py
resources/speechExtraction.py
+1
-0
No files found.
resources/__pycache__/speechExtraction.cpython-38.pyc
View file @
c624512c
No preview for this file type
resources/awsOperation.py
0 → 100644
View file @
c624512c
import
boto3
import
glob
import
numpy
as
np
class
AwsOperation
:
def
__init__
(
self
,
bucket_name
):
self
.
bucket_name
=
bucket_name
def
s3_connector
(
self
):
session
=
boto3
.
Session
(
aws_access_key_id
=
"AKIAWAP4EPNHCC6BXFXV"
,
aws_secret_access_key
=
"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"
,
)
s3
=
session
.
resource
(
's3'
)
return
s3
.
Bucket
(
self
.
bucket_name
)
\ No newline at end of file
resources/speechExtraction.py
View file @
c624512c
from
flask_restful
import
Resource
from
loguru
import
logger
from
.wordsProcessModel
import
WordModel
from
.awsOperation
import
AwsOperation
import
speech_recognition
as
sr
import
moviepy.editor
as
mp
...
...
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