Spaces:
Build error
Build error
Commit
·
cd4751e
1
Parent(s):
7bf2557
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,11 +46,13 @@ st.set_option("deprecation.showfileUploaderEncoding", False)
|
|
| 46 |
def load_model():
|
| 47 |
from huggingface_hub import from_pretrained_keras
|
| 48 |
|
|
|
|
| 49 |
model = from_pretrained_keras("ryefoxlime/PneumoniaDetection")
|
| 50 |
return model
|
| 51 |
|
| 52 |
|
| 53 |
with st.spinner("Model is being loaded.."):
|
|
|
|
| 54 |
model = load_model()
|
| 55 |
|
| 56 |
file = st.file_uploader(" ", type=["jpg", "png"])
|
|
|
|
| 46 |
def load_model():
|
| 47 |
from huggingface_hub import from_pretrained_keras
|
| 48 |
|
| 49 |
+
keras.utils.set_random_seed(42)
|
| 50 |
model = from_pretrained_keras("ryefoxlime/PneumoniaDetection")
|
| 51 |
return model
|
| 52 |
|
| 53 |
|
| 54 |
with st.spinner("Model is being loaded.."):
|
| 55 |
+
keras.utils.set_random_seed(42)
|
| 56 |
model = load_model()
|
| 57 |
|
| 58 |
file = st.file_uploader(" ", type=["jpg", "png"])
|