project21 commited on
Commit
296f593
·
verified ·
1 Parent(s): 7d418d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def predict_disease(image_file, model, all_labels, target_language):
34
  # Predict the class
35
  predictions = model.predict(img_array)
36
  # Validate predictions
37
- confidence_threshold = 0.98 # Require at least 98% confidence
38
  confidence_scores = predictions[0]
39
  max_confidence = np.max(confidence_scores)
40
 
 
34
  # Predict the class
35
  predictions = model.predict(img_array)
36
  # Validate predictions
37
+ confidence_threshold = 0.7 # Require at least 98% confidence
38
  confidence_scores = predictions[0]
39
  max_confidence = np.max(confidence_scores)
40