SAUL19 commited on
Commit
c5e2889
·
1 Parent(s): 3b6208e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,6 +73,7 @@ def generateAudio(text_to_audio, s3_save_as, key_id):
73
 
74
  # Upload the audio file to the S3 bucket
75
  s3.upload_fileobj(audio, S3_BUCKET_NAME, s3_key)
 
76
 
77
  except Exception as err:
78
  print("Error al guardar")
@@ -144,7 +145,6 @@ def list_s3_files():
144
  my_bucket = s3.Bucket(S3_BUCKET_NAME)
145
 
146
  for objects in my_bucket.objects.filter(Prefix=FOLDER):
147
- print(objects.key)
148
 
149
  filename_ext = '%s' % os.path.basename(objects.key)
150
  filename = os.path.splitext(filename_ext)[0]
 
73
 
74
  # Upload the audio file to the S3 bucket
75
  s3.upload_fileobj(audio, S3_BUCKET_NAME, s3_key)
76
+ print("SUCCESS SAVE IN S3 WHERE" + s3_key + " & " + S3_BUCKET_NAME)
77
 
78
  except Exception as err:
79
  print("Error al guardar")
 
145
  my_bucket = s3.Bucket(S3_BUCKET_NAME)
146
 
147
  for objects in my_bucket.objects.filter(Prefix=FOLDER):
 
148
 
149
  filename_ext = '%s' % os.path.basename(objects.key)
150
  filename = os.path.splitext(filename_ext)[0]