spuuntries commited on
Commit
0e6656d
β€’
1 Parent(s): e1c62f8

fix: lower threshold

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ def predict_and_compare(image):
132
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–’β–’β–ˆβ–ˆβ–’β–ˆβ–“β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–ˆβ–ˆβ–“β–’β–’β–‘β–’β–ˆβ–’β–’β–’β–’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"""
133
  fail = f"{astolfo_sed}\n\nπŸ₯² FAILED TO AUTHENTICATE πŸ₯²"
134
 
135
- return f"{success if ssim_value>0.9 and predicted_class == 'True' else fail}\n=====================\n\nPredicted: {predicted_class}\nProbability: {probability:.4f}\nSSIM with reference: {ssim_value:.4f}"
136
 
137
 
138
  iface = gr.Interface(
 
132
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–’β–’β–ˆβ–ˆβ–’β–ˆβ–“β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–ˆβ–ˆβ–“β–’β–’β–‘β–’β–ˆβ–’β–’β–’β–’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"""
133
  fail = f"{astolfo_sed}\n\nπŸ₯² FAILED TO AUTHENTICATE πŸ₯²"
134
 
135
+ return f"{success if ssim_value>=0.89 and predicted_class == 'True' else fail}\n=====================\n\nPredicted: {predicted_class}\nProbability: {probability:.4f}\nSSIM with reference: {ssim_value:.4f}"
136
 
137
 
138
  iface = gr.Interface(