Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,39 @@ import numpy as np
|
|
5 |
from PIL import Image
|
6 |
import base64
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Load the pre-trained model
|
10 |
model = tf.keras.models.load_model('model.h5')
|
|
|
5 |
from PIL import Image
|
6 |
import base64
|
7 |
|
8 |
+
hide_streamlit_style = """
|
9 |
+
<style>
|
10 |
+
div[data-testid="stToolbar"] {
|
11 |
+
visibility: hidden;
|
12 |
+
height: 0%;
|
13 |
+
position: fixed;
|
14 |
+
}
|
15 |
+
div[data-testid="stDecoration"] {
|
16 |
+
visibility: hidden;
|
17 |
+
height: 0%;
|
18 |
+
position: fixed;
|
19 |
+
}
|
20 |
+
div[data-testid="stStatusWidget"] {
|
21 |
+
visibility: hidden;
|
22 |
+
height: 0%;
|
23 |
+
position: fixed;
|
24 |
+
}
|
25 |
+
#MainMenu {
|
26 |
+
visibility: hidden;
|
27 |
+
height: 0%;
|
28 |
+
}
|
29 |
+
header {
|
30 |
+
visibility: hidden;
|
31 |
+
height: 0%;
|
32 |
+
}
|
33 |
+
footer {
|
34 |
+
visibility: hidden;
|
35 |
+
height: 0%;
|
36 |
+
}
|
37 |
+
</style>
|
38 |
+
"""
|
39 |
+
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
40 |
+
|
41 |
|
42 |
# Load the pre-trained model
|
43 |
model = tf.keras.models.load_model('model.h5')
|