Spaces:
Running
Running
Update app.py
Browse files
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 =
|
|
|
|
|
|
|
| 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])
|