Commit c624512c authored by Pamal-Ranasinghe's avatar Pamal-Ranasinghe

aws operations are added

parent 97ee6874
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