Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ def process_images(
|
|
145 |
if concept_image1 is not None:
|
146 |
concept_images.append(concept_image1)
|
147 |
if use_concpet_from_file_1 and concpet_from_file_1 is not None: # if concept is new from user input
|
148 |
-
concept_descriptions.append(
|
149 |
skip_load_concept[0] = True
|
150 |
else:
|
151 |
concept_descriptions.append(CONCEPTS_MAP[concept_name1])
|
@@ -156,7 +156,7 @@ def process_images(
|
|
156 |
if concept_image2 is not None:
|
157 |
concept_images.append(concept_image2)
|
158 |
if use_concpet_from_file_2 and concpet_from_file_2 is not None: # if concept is new from user input
|
159 |
-
concept_descriptions.append(
|
160 |
skip_load_concept[1] = True
|
161 |
else:
|
162 |
concept_descriptions.append(CONCEPTS_MAP[concept_name2])
|
@@ -165,7 +165,7 @@ def process_images(
|
|
165 |
if concept_image3 is not None:
|
166 |
concept_images.append(concept_image3)
|
167 |
if use_concpet_from_file_3 and concpet_from_file_3 is not None: # if concept is new from user input
|
168 |
-
concept_descriptions.append(
|
169 |
skip_load_concept[2] = True
|
170 |
else:
|
171 |
concept_descriptions.append(CONCEPTS_MAP[concept_name3])
|
|
|
145 |
if concept_image1 is not None:
|
146 |
concept_images.append(concept_image1)
|
147 |
if use_concpet_from_file_1 and concpet_from_file_1 is not None: # if concept is new from user input
|
148 |
+
concept_descriptions.append(concpet_from_file_1)
|
149 |
skip_load_concept[0] = True
|
150 |
else:
|
151 |
concept_descriptions.append(CONCEPTS_MAP[concept_name1])
|
|
|
156 |
if concept_image2 is not None:
|
157 |
concept_images.append(concept_image2)
|
158 |
if use_concpet_from_file_2 and concpet_from_file_2 is not None: # if concept is new from user input
|
159 |
+
concept_descriptions.append(concpet_from_file_2)
|
160 |
skip_load_concept[1] = True
|
161 |
else:
|
162 |
concept_descriptions.append(CONCEPTS_MAP[concept_name2])
|
|
|
165 |
if concept_image3 is not None:
|
166 |
concept_images.append(concept_image3)
|
167 |
if use_concpet_from_file_3 and concpet_from_file_3 is not None: # if concept is new from user input
|
168 |
+
concept_descriptions.append(concpet_from_file_3)
|
169 |
skip_load_concept[2] = True
|
170 |
else:
|
171 |
concept_descriptions.append(CONCEPTS_MAP[concept_name3])
|