Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,7 +235,7 @@ if picture:
|
|
| 235 |
X_test_array_reshaped = np.expand_dims(X_array, axis=-1)
|
| 236 |
prediction = model.predict(X_test_array_reshaped)
|
| 237 |
prediction2 = model2.predict(X_test_array_reshaped)
|
| 238 |
-
if prediction >= 0.
|
| 239 |
st.text("صورة حقيقية")
|
| 240 |
# st.text(str(prediction[0]))
|
| 241 |
# st.text(str(prediction2[0]))
|
|
|
|
| 235 |
X_test_array_reshaped = np.expand_dims(X_array, axis=-1)
|
| 236 |
prediction = model.predict(X_test_array_reshaped)
|
| 237 |
prediction2 = model2.predict(X_test_array_reshaped)
|
| 238 |
+
if prediction >= 0.85 and prediction2 >= 0.0000000000001:
|
| 239 |
st.text("صورة حقيقية")
|
| 240 |
# st.text(str(prediction[0]))
|
| 241 |
# st.text(str(prediction2[0]))
|