fish 6 months ago
parent
commit
eae968bbea
2 changed files with 3 additions and 2 deletions
  1. 2 2
      demo2/app.py
  2. 1 0
      demo2/pyproject.toml

+ 2 - 2
demo2/app.py

@@ -17,7 +17,7 @@ st.set_page_config(
      page_title="Streamlit example",
      page_title="Streamlit example",
      page_icon="./icon/android-chrome-192x192.png",
      page_icon="./icon/android-chrome-192x192.png",
      layout="wide",
      layout="wide",
-     initial_sidebar_state="collapsed",
+     initial_sidebar_state="expanded",
      menu_items={
      menu_items={
          'Get Help': 'https://www.baidu.com/',
          'Get Help': 'https://www.baidu.com/',
          'Report a bug': None,
          'Report a bug': None,
@@ -25,7 +25,7 @@ st.set_page_config(
      }
      }
  )
  )
 
 
-st.image("./icon/android-chrome-192x192.png")
+# st.image("./icon/android-chrome-192x192.png")
 
 
 #t1函数,用于测试 on_change或 on_click
 #t1函数,用于测试 on_change或 on_click
 def t1():
 def t1():

+ 1 - 0
demo2/pyproject.toml

@@ -8,6 +8,7 @@ readme = "README.md"
 [tool.poetry.dependencies]
 [tool.poetry.dependencies]
 python = "^3.12"
 python = "^3.12"
 streamlit = "1.28.0"
 streamlit = "1.28.0"
+pandas = "^2.2.3"
 
 
 
 
 [build-system]
 [build-system]