muhammadsalmanalfaridzi commited on
Commit
d933cbb
·
verified ·
1 Parent(s): 64e8634

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,11 +87,11 @@ def detect_combined(image):
87
  result_text += f"{class_name}: {count}\n"
88
  result_text += f"\nTotal Products Nestle: {total_nestle}\n\n"
89
 
90
- result_text += "Competitor Products\n\n"
91
  if competitor_class_count:
92
  result_text += f"Total Unclassified Products: {total_competitor}\n" # Hanya total, tidak per kelas
93
  else:
94
- result_text += "No competitors detected\n"
95
 
96
  # ========== [4] Visualisasi ==========
97
  img = cv2.imread(temp_path)
 
87
  result_text += f"{class_name}: {count}\n"
88
  result_text += f"\nTotal Products Nestle: {total_nestle}\n\n"
89
 
90
+ #result_text += "Competitor Products\n\n"
91
  if competitor_class_count:
92
  result_text += f"Total Unclassified Products: {total_competitor}\n" # Hanya total, tidak per kelas
93
  else:
94
+ result_text += "No Unclassified Products detected\n"
95
 
96
  # ========== [4] Visualisasi ==========
97
  img = cv2.imread(temp_path)