multimodalart HF staff commited on
Commit
0af49b7
1 Parent(s): a329b11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 txt_file_dict:
73
- with open(txt_file_dict[base_name], 'r') as file:
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