Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
47aae2b
1
Parent(s):
15404f1
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,6 @@ def load_captioning(uploaded_files, concept_sentence):
|
|
42 |
uploaded_images = [file for file in uploaded_files if not file.endswith('.txt')]
|
43 |
txt_files = [file for file in uploaded_files if file.endswith('.txt')]
|
44 |
txt_files_dict = {os.path.splitext(os.path.basename(txt_file))[0]: txt_file for txt_file in txt_files}
|
45 |
-
print(txt_files)
|
46 |
-
print(txt_files_dict)
|
47 |
-
gr.Info("Images uploaded!")
|
48 |
updates = []
|
49 |
if len(uploaded_images) <= 1:
|
50 |
raise gr.Error(
|
|
|
42 |
uploaded_images = [file for file in uploaded_files if not file.endswith('.txt')]
|
43 |
txt_files = [file for file in uploaded_files if file.endswith('.txt')]
|
44 |
txt_files_dict = {os.path.splitext(os.path.basename(txt_file))[0]: txt_file for txt_file in txt_files}
|
|
|
|
|
|
|
45 |
updates = []
|
46 |
if len(uploaded_images) <= 1:
|
47 |
raise gr.Error(
|