Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def procesar(input_image):
|
|
| 17 |
|
| 18 |
#s3_client = boto3.client('s3')
|
| 19 |
#rekognition = boto3.client('rekognition')
|
| 20 |
-
s3_client.upload_file(input_image,
|
| 21 |
#Font exercici de detecci贸 de cares
|
| 22 |
image_file = s3_client.get_object(
|
| 23 |
Bucket= "eac5",
|
|
@@ -29,7 +29,7 @@ def procesar(input_image):
|
|
| 29 |
response = rekognition.detect_labels(
|
| 30 |
Image={
|
| 31 |
'S3Object': {
|
| 32 |
-
'Bucket':
|
| 33 |
'Name': input_image
|
| 34 |
}
|
| 35 |
})
|
|
|
|
| 17 |
|
| 18 |
#s3_client = boto3.client('s3')
|
| 19 |
#rekognition = boto3.client('rekognition')
|
| 20 |
+
s3_client.upload_file(input_image, s3BucketName, input_image)
|
| 21 |
#Font exercici de detecci贸 de cares
|
| 22 |
image_file = s3_client.get_object(
|
| 23 |
Bucket= "eac5",
|
|
|
|
| 29 |
response = rekognition.detect_labels(
|
| 30 |
Image={
|
| 31 |
'S3Object': {
|
| 32 |
+
'Bucket': s3BucketName,
|
| 33 |
'Name': input_image
|
| 34 |
}
|
| 35 |
})
|