BenjiELCA commited on
Commit
bc8625e
·
1 Parent(s): d6aec26
Files changed (1) hide show
  1. modules/streamlit_utils.py +0 -2
modules/streamlit_utils.py CHANGED
@@ -180,14 +180,12 @@ def get_image(uploaded_file):
180
  return Image.open(uploaded_file).convert('RGB')
181
 
182
 
183
-
184
  def configure_page():
185
  st.set_page_config(layout="wide")
186
  screen_width = streamlit_js_eval(js_expressions='screen.width', want_output=True, key='SCR')
187
  is_mobile = screen_width is not None and screen_width < 800
188
  return is_mobile, screen_width
189
 
190
- from streamlit_js_eval import streamlit_js_eval
191
 
192
  def display_banner(is_mobile):
193
  # JavaScript expression to detect dark mode
 
180
  return Image.open(uploaded_file).convert('RGB')
181
 
182
 
 
183
  def configure_page():
184
  st.set_page_config(layout="wide")
185
  screen_width = streamlit_js_eval(js_expressions='screen.width', want_output=True, key='SCR')
186
  is_mobile = screen_width is not None and screen_width < 800
187
  return is_mobile, screen_width
188
 
 
189
 
190
  def display_banner(is_mobile):
191
  # JavaScript expression to detect dark mode