CosmickVisions commited on
Commit
ace5ec8
·
verified ·
1 Parent(s): 11bf68e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -1592,13 +1592,6 @@ def main():
1592
  st.write("Image settings:")
1593
  quality = st.slider("Image Quality", min_value=0, max_value=100, value=100)
1594
 
1595
- # Add a slider in the sidebar
1596
- confidence_threshold = st.sidebar.slider("Detection Confidence Threshold", 0.0, 1.0, 0.5)
1597
-
1598
- # Then filter results based on this threshold
1599
- filtered_objects = [obj for obj in response.localized_object_annotations
1600
- if obj.score >= confidence_threshold]
1601
-
1602
  st.markdown("---")
1603
  st.info("This application analyzes images using Google Cloud Vision AI. Upload an image to get started.")
1604
 
 
1592
  st.write("Image settings:")
1593
  quality = st.slider("Image Quality", min_value=0, max_value=100, value=100)
1594
 
 
 
 
 
 
 
 
1595
  st.markdown("---")
1596
  st.info("This application analyzes images using Google Cloud Vision AI. Upload an image to get started.")
1597