lhoestq HF staff commited on
Commit
ced0b21
1 Parent(s): 09dfb76

Update promptsource/session.py

Browse files
Files changed (1) hide show
  1. promptsource/session.py +1 -4
promptsource/session.py CHANGED
@@ -6,14 +6,11 @@
6
  # https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662
7
  #
8
 
9
- import 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."""
 
6
  # https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662
7
  #
8
 
9
+ from streamlit.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."""