Spaces:
Sleeping
Sleeping
Commit
•
0af49b7
1
Parent(s):
a329b11
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ def load_captioning(uploaded_images, concept_sentence):
|
|
69 |
corresponding_caption = False
|
70 |
if(image_value):
|
71 |
base_name = os.path.splitext(os.path.basename(image_value))[0]
|
72 |
-
if base_name in
|
73 |
-
with open(
|
74 |
corresponding_caption = file.read()
|
75 |
|
76 |
# Update value of captioning area
|
|
|
69 |
corresponding_caption = False
|
70 |
if(image_value):
|
71 |
base_name = os.path.splitext(os.path.basename(image_value))[0]
|
72 |
+
if base_name in txt_files_dict:
|
73 |
+
with open(txt_files_dict[base_name], 'r') as file:
|
74 |
corresponding_caption = file.read()
|
75 |
|
76 |
# Update value of captioning area
|