Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
a7ec5dd
1 Parent(s): d3cc512

decorator check

Browse files
Files changed (1) hide show
  1. utils/streamlitcheck.py +1 -1
utils/streamlitcheck.py CHANGED
@@ -8,7 +8,7 @@ def check_streamlit():
8
  True if code is run within streamlit, else False
9
  """
10
  try:
11
- from streamlit.script_run_context import get_script_run_ctx
12
  if not get_script_run_ctx():
13
  use_streamlit = False
14
  else:
 
8
  True if code is run within streamlit, else False
9
  """
10
  try:
11
+ from st.script_run_context import get_script_run_ctx
12
  if not get_script_run_ctx():
13
  use_streamlit = False
14
  else: