Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ demo = gr.Blocks(css=css)
|
|
| 124 |
|
| 125 |
with demo:
|
| 126 |
gr.Markdown('''<h1 id="title">Image Caption 🖼️</h1>''')
|
| 127 |
-
gr.Markdown('''Made by :
|
| 128 |
|
| 129 |
zip_files = gr.State([])
|
| 130 |
image_files = gr.State([])
|
|
@@ -133,15 +133,15 @@ with demo:
|
|
| 133 |
with gr.Column(scale=1):
|
| 134 |
new_zip_files = gr.File(label="Upload Zip Files", type="filepath", file_count="multiple")
|
| 135 |
generate_zip_captions_btn = gr.Button("Generate Zip Captions")
|
| 136 |
-
output_zip_file = gr.File(label="Download Zip Captions"
|
| 137 |
with gr.Column(scale=1):
|
| 138 |
new_image_files = gr.File(label="Upload Images", type="filepath", file_count="multiple")
|
| 139 |
generate_image_captions_btn = gr.Button("Generate Image Captions")
|
| 140 |
-
output_image_file = gr.File(label="Download Image Captions"
|
| 141 |
|
| 142 |
add_files_btn = gr.Button("Add More Files")
|
| 143 |
combine_files_btn = gr.Button("Combine CSV Files")
|
| 144 |
-
combined_file = gr.File(label="Download Combined Captions"
|
| 145 |
|
| 146 |
def add_files(zip_files, image_files, new_zip_files, new_image_files):
|
| 147 |
zip_files.extend(new_zip_files)
|
|
|
|
| 124 |
|
| 125 |
with demo:
|
| 126 |
gr.Markdown('''<h1 id="title">Image Caption 🖼️</h1>''')
|
| 127 |
+
gr.Markdown('''Made by : N. F.''')
|
| 128 |
|
| 129 |
zip_files = gr.State([])
|
| 130 |
image_files = gr.State([])
|
|
|
|
| 133 |
with gr.Column(scale=1):
|
| 134 |
new_zip_files = gr.File(label="Upload Zip Files", type="filepath", file_count="multiple")
|
| 135 |
generate_zip_captions_btn = gr.Button("Generate Zip Captions")
|
| 136 |
+
output_zip_file = gr.File(label="Download Zip Captions")
|
| 137 |
with gr.Column(scale=1):
|
| 138 |
new_image_files = gr.File(label="Upload Images", type="filepath", file_count="multiple")
|
| 139 |
generate_image_captions_btn = gr.Button("Generate Image Captions")
|
| 140 |
+
output_image_file = gr.File(label="Download Image Captions")
|
| 141 |
|
| 142 |
add_files_btn = gr.Button("Add More Files")
|
| 143 |
combine_files_btn = gr.Button("Combine CSV Files")
|
| 144 |
+
combined_file = gr.File(label="Download Combined Captions")
|
| 145 |
|
| 146 |
def add_files(zip_files, image_files, new_zip_files, new_image_files):
|
| 147 |
zip_files.extend(new_zip_files)
|