danie94-lml commited on
Commit
b1587c2
·
verified ·
1 Parent(s): 5c861ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -81,10 +81,12 @@ def click_instance_segmentation(image, model_selection, predictor):
81
 
82
  st.write(f"Percentage of Inorganic Material in Nest: {percentage_inorganic_in_nest:.2f}%")
83
 
 
 
84
  # Mostrar la cantidad de máscaras por categoría
85
  st.write("Mask Counts by Category:")
86
  for category, count in mask_counts.items():
87
- st.write(f"Category {category}: {count} masks")
88
 
89
 
90
  def app():
 
81
 
82
  st.write(f"Percentage of Inorganic Material in Nest: {percentage_inorganic_in_nest:.2f}%")
83
 
84
+ category_list = ['Plastic', 'Fishing_Net', 'Rope/Cloth', "Nest"]
85
+
86
  # Mostrar la cantidad de máscaras por categoría
87
  st.write("Mask Counts by Category:")
88
  for category, count in mask_counts.items():
89
+ st.write(f"Category {category_list[category]}: {count} masks")
90
 
91
 
92
  def app():