project21 commited on
Commit
c3c2aef
·
verified ·
1 Parent(s): 9467e7d

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
  predictions = model.predict(img_array)
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
  predictions = model.predict(img_array)
37
+ confidence_threshold = 0.7 # Require at least 98% confidence
38
  confidence_scores = predictions[0]
39
  max_confidence = np.max(confidence_scores)
40