Skip to content

Commit

Permalink
Merge branch 'frame-drawer-updates' into 'master'
Browse files Browse the repository at this point in the history
Frame drawer updates

See merge request gumgum-sports/computer-vision/multivitamin!53
  • Loading branch information
Matthew Greenberg committed Jan 13, 2020
2 parents 3d48127 + 4c197f2 commit 716f11d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions multivitamin/applications/images/frame_drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ def upload_video(self, video_file_path):
client.upload_file(
video_file_path,
self.s3_bucket,
s3_key
s3_key,
ExtraArgs={
'ContentType': 'video/mp4'
}
)

s3_url = client.generate_presigned_url(
Expand All @@ -252,7 +255,10 @@ def upload_frames(self, image_directory):
client.upload_file(
image_path,
self.s3_bucket,
s3_key
s3_key,
ExtraArgs={
'ContentType': 'image/jpeg'
}
)

s3_url = client.generate_presigned_url(
Expand Down

0 comments on commit 716f11d

Please sign in to comment.