Spaces:
Running
Running
Update promptsource/session.py
Browse files- promptsource/session.py +3 -3
promptsource/session.py
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
# This code is taken from
|
6 |
# https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662
|
7 |
#
|
8 |
-
|
9 |
-
from streamlit.
|
10 |
from streamlit.report_thread import get_report_ctx
|
11 |
from streamlit.server.server import Server
|
12 |
|
@@ -17,7 +17,7 @@ class _SessionState:
|
|
17 |
self.__dict__["_state"] = {
|
18 |
"data": {},
|
19 |
"hash": None,
|
20 |
-
"hasher":
|
21 |
"is_rerun": False,
|
22 |
"session": session,
|
23 |
}
|
|
|
5 |
# This code is taken from
|
6 |
# https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662
|
7 |
#
|
8 |
+
|
9 |
+
from streamlit.runtime.legacy_hashing import _CodeHasher
|
10 |
from streamlit.report_thread import get_report_ctx
|
11 |
from streamlit.server.server import Server
|
12 |
|
|
|
17 |
self.__dict__["_state"] = {
|
18 |
"data": {},
|
19 |
"hash": None,
|
20 |
+
"hasher": _CodeHasher(hash_funcs),
|
21 |
"is_rerun": False,
|
22 |
"session": session,
|
23 |
}
|