JuanMa360 commited on
Commit
5b81acc
·
1 Parent(s): 56127c0

bugfix: views

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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