Spaces:
Sleeping
Sleeping
bugfix: views
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ def generate_answer(image):
|
|
177 |
|
178 |
window_exists = has_window["answer"].lower() == "yes" and has_window["score"] > 0.9
|
179 |
|
180 |
-
if window_exists:
|
181 |
luminosity_score = calculate_luminosity_score(processed_image)
|
182 |
image_data["luminosity_score"]['score'] = luminosity_score['natural_light']
|
183 |
|
|
|
177 |
|
178 |
window_exists = has_window["answer"].lower() == "yes" and has_window["score"] > 0.9
|
179 |
|
180 |
+
if max_space_type in ["bedroom", "living room", "kitchen"] and window_exists:
|
181 |
luminosity_score = calculate_luminosity_score(processed_image)
|
182 |
image_data["luminosity_score"]['score'] = luminosity_score['natural_light']
|
183 |
|