Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
from random import randint
|
3 |
-
from .session_state import get_session_state
|
4 |
|
5 |
import cv2
|
6 |
import pandas
|
@@ -25,7 +25,7 @@ img_width = 224
|
|
25 |
class_names = ['Palm', 'Others']
|
26 |
model = tf.keras.models.load_model('model')
|
27 |
|
28 |
-
state = get_session_state()
|
29 |
if not state.widget_key:
|
30 |
state.widget_key = str(randint(1000, 100000000))
|
31 |
|
|
|
1 |
import streamlit as st
|
2 |
from random import randint
|
3 |
+
#from .session_state import get_session_state
|
4 |
|
5 |
import cv2
|
6 |
import pandas
|
|
|
25 |
class_names = ['Palm', 'Others']
|
26 |
model = tf.keras.models.load_model('model')
|
27 |
|
28 |
+
state = st.session_state.get_session_state()
|
29 |
if not state.widget_key:
|
30 |
state.widget_key = str(randint(1000, 100000000))
|
31 |
|