def upload_result_to_s3()

in dynamicfilters/videodynamismfiltering/check_static.py [0:0]


def upload_result_to_s3(bucket, video_id, is_static):
    """Upload the result to S3 based on whether the video is static or dynamic."""
    s3_key = f"{'static' if is_static else 'dynamic'}/{video_id}.txt"
    try:
        s3.put_object(Bucket=bucket, Key=s3_key, Body="")
        print(f"Uploaded result to s3://{bucket}/{s3_key}")
    except Exception as e:
        print(f"Error uploading result for {video_id}: {e}")