bhanusAI commited on
Commit
f2c1a80
·
verified ·
1 Parent(s): 29cab5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -49,11 +49,9 @@ def model(img):
49
  predictions = loaded_model.predict(x)
50
  print(predictions)
51
 
52
- predicted_class_index = 1 if (predictions[0]>0.5) else 0
53
- print(predicted_class_index)
54
-
55
  predicted_class_index = np.argmax(predictions[0])
56
-
 
57
  return predicted_class_label
58
 
59
  cataract_app = gr.Interface(model,gr.Image(),["text"])
 
49
  predictions = loaded_model.predict(x)
50
  print(predictions)
51
 
 
 
 
52
  predicted_class_index = np.argmax(predictions[0])
53
+ print(predicted_class_index)
54
+
55
  return predicted_class_label
56
 
57
  cataract_app = gr.Interface(model,gr.Image(),["text"])