Spaces:
Paused
Paused
fix issue
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def text_to_image(prompt, save_as, key_id):
|
|
49 |
|
50 |
# Upload the image to the S3 bucket
|
51 |
s3.upload_fileobj(image_buffer, S3_BUCKET_NAME, s3_key)
|
52 |
-
print('Image saved to s3')
|
53 |
|
54 |
def generator_image(prompt):
|
55 |
prompt = prompt
|
@@ -121,10 +121,8 @@ def list_s3_files(bucket_name, folder):
|
|
121 |
print('There is NOT resume, skipping..')
|
122 |
|
123 |
sleep(500/1000)
|
124 |
-
|
125 |
|
126 |
|
127 |
-
list_s3_files(bucket_name, folder)
|
128 |
-
|
129 |
iface = gr.Interface(fn=list_s3_files, inputs=[Textbox(label="bucket_name"), Textbox(label="folder")], outputs="text")
|
130 |
iface.launch()
|
|
|
49 |
|
50 |
# Upload the image to the S3 bucket
|
51 |
s3.upload_fileobj(image_buffer, S3_BUCKET_NAME, s3_key)
|
52 |
+
print('Image %s saved to s3' % s3_key)
|
53 |
|
54 |
def generator_image(prompt):
|
55 |
prompt = prompt
|
|
|
121 |
print('There is NOT resume, skipping..')
|
122 |
|
123 |
sleep(500/1000)
|
124 |
+
text_to_image(title, filename, AWS_ACCESS_KEY_ID)
|
125 |
|
126 |
|
|
|
|
|
127 |
iface = gr.Interface(fn=list_s3_files, inputs=[Textbox(label="bucket_name"), Textbox(label="folder")], outputs="text")
|
128 |
iface.launch()
|