stardust-eques commited on
Commit
de59bb7
·
verified ·
1 Parent(s): c19b663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -72,7 +72,9 @@ with st.sidebar:
72
  st.write("サイドバーより学習データをZipファイルとしてアップロードしボタンをクリック.")
73
  if st.button("訓練開始"):
74
  with st.spinner("1分ほどお待ちください..."):
75
- image_paths = glob.glob("data/*/*.JPG")
 
 
76
  col1, col2, col3 = st.columns(3) # 2列のコンテナを用意する
77
  with col1:
78
  st.image(image_paths[0])
 
72
  st.write("サイドバーより学習データをZipファイルとしてアップロードしボタンをクリック.")
73
  if st.button("訓練開始"):
74
  with st.spinner("1分ほどお待ちください..."):
75
+ image_paths = []
76
+ for ext in ["JPG", "jpg", "PNG", "png"]:
77
+ image_paths.extend(glob.glob(f"data/*/*.{ext}"))
78
  col1, col2, col3 = st.columns(3) # 2列のコンテナを用意する
79
  with col1:
80
  st.image(image_paths[0])