spuuntries
commited on
Commit
β’
0e6656d
1
Parent(s):
e1c62f8
fix: lower threshold
Browse files
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
|
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(
|