ASR_arena / utils.py
chinmayc3's picture
converted app to multipage to improve performance
84a9b26
raw
history blame contribute delete
465 Bytes
import fsspec
import boto3
import os
import re
fs = fsspec.filesystem(
's3',
key=os.getenv("AWS_ACCESS_KEY"),
secret=os.getenv("AWS_SECRET_KEY")
)
s3_client = boto3.client(
's3',
aws_access_key_id=os.getenv("AWS_ACCESS_KEY"),
aws_secret_access_key=os.getenv("AWS_SECRET_KEY")
)
def validate_email(email):
pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
return re.match(pattern, email) is not None