Horus7 commited on
Commit
84edf89
1 Parent(s): 355a8dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,11 +24,11 @@ def detect(img):
24
  # return "Pneumonia Detected!"
25
 
26
  # return "Pneumonia Not Detected!"
27
- if format_decimal(prediction[0]) >= "0.8":
28
  return "Risque d'infection bactérienne"
29
- if format_decimal(prediction[1]) >= "0.8":
30
  return "Poumon sain"
31
- if format_decimal(prediction[2]) >= "0.8":
32
  return "Risque d'infection biologique"
33
 
34
 
 
24
  # return "Pneumonia Detected!"
25
 
26
  # return "Pneumonia Not Detected!"
27
+ if format_decimal(prediction[0]) >= "0.5":
28
  return "Risque d'infection bactérienne"
29
+ if format_decimal(prediction[1]) >= "0.5":
30
  return "Poumon sain"
31
+ if format_decimal(prediction[2]) >= "0.5":
32
  return "Risque d'infection biologique"
33
 
34