prashant
commited on
Commit
•
123fa2b
1
Parent(s):
b037e41
decorator test
Browse files- utils/sdg_classifier.py +1 -1
utils/sdg_classifier.py
CHANGED
@@ -37,7 +37,7 @@ def check_streamlit():
|
|
37 |
True if code is run within streamlit, else False
|
38 |
"""
|
39 |
try:
|
40 |
-
from
|
41 |
if not get_script_run_ctx():
|
42 |
use_streamlit = False
|
43 |
else:
|
|
|
37 |
True if code is run within streamlit, else False
|
38 |
"""
|
39 |
try:
|
40 |
+
from streamlit.scriptrunner.script_run_context import get_script_run_ctx
|
41 |
if not get_script_run_ctx():
|
42 |
use_streamlit = False
|
43 |
else:
|