lhoestq HF staff commited on
Commit
7765be1
1 Parent(s): 7c32227

Update promptsource/session.py

Browse files
Files changed (1) hide show
  1. promptsource/session.py +4 -1
promptsource/session.py CHANGED
@@ -6,11 +6,14 @@
6
  # https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662
7
  #
8
 
9
- from streamlit.runtime.legacy_cashing.hashing import _CodeHasher
10
  from streamlit.report_thread import get_report_ctx
11
  from streamlit.server.server import Server
12
 
13
 
 
 
 
14
  class _SessionState:
15
  def __init__(self, session, hash_funcs):
16
  """Initialize SessionState instance."""
 
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
 
13
 
14
+ _CodeHasher = streamlit.runtime.legacy_caching.hashing._CodeHasher
15
+
16
+
17
  class _SessionState:
18
  def __init__(self, session, hash_funcs):
19
  """Initialize SessionState instance."""