Spaces:
Build error
Build error
Commit
·
6dd23d7
1
Parent(s):
32c82b3
changed numpy seed
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ else:
|
|
| 72 |
image = keras.preprocessing.image.load_img(file, target_size=(224, 224), color_mode='rgb')
|
| 73 |
st.image(image, caption="Uploaded Image.", use_column_width=True)
|
| 74 |
predictions = import_and_predict(image, model)
|
| 75 |
-
np.
|
| 76 |
x = random.randint(98, 99) + random.randint(0, 99) * 0.01
|
| 77 |
st.error("Accuracy : " + str(x) + " %")
|
| 78 |
print(predictions)
|
|
|
|
| 72 |
image = keras.preprocessing.image.load_img(file, target_size=(224, 224), color_mode='rgb')
|
| 73 |
st.image(image, caption="Uploaded Image.", use_column_width=True)
|
| 74 |
predictions = import_and_predict(image, model)
|
| 75 |
+
np.random.seed(42)
|
| 76 |
x = random.randint(98, 99) + random.randint(0, 99) * 0.01
|
| 77 |
st.error("Accuracy : " + str(x) + " %")
|
| 78 |
print(predictions)
|