Commit e73b5ad6 authored by Ranasinghe R.A.P.T's avatar Ranasinghe R.A.P.T

Merge branch 'feature/aws_operations' into 'dev'

aws operations are added

See merge request !4
parents 97ee6874 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
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
......
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