dzmu commited on
Commit
10bd4e9
·
verified ·
1 Parent(s): ef3e7d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -283,6 +283,7 @@ def analyze_outfit(input_img):
283
  clip_detected_item_prob = 0.0
284
  category_key = 'mid' # Default category
285
  final_score_str = "N/A"
 
286
 
287
  try:
288
  image_tensor = clip_preprocess(cropped_img).unsqueeze(0).to(DEVICE)
 
283
  clip_detected_item_prob = 0.0
284
  category_key = 'mid' # Default category
285
  final_score_str = "N/A"
286
+ final_score = 0.0
287
 
288
  try:
289
  image_tensor = clip_preprocess(cropped_img).unsqueeze(0).to(DEVICE)