Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,8 @@ blur_enabled = st.session_state.blur_enabled
|
|
52 |
|
53 |
# タグ検索用のテキスト入力
|
54 |
tag_search_input = st.sidebar.text_input("タグ検索 (カンマでセパレート)", "", key="tag_search")
|
55 |
-
|
|
|
56 |
# ページングのための変数
|
57 |
page_num = st.sidebar.number_input("ページ番号", value=1, min_value=1, max_value=(len(photo_df) // PAGE_SIZE) + 1, key="page_num")
|
58 |
|
@@ -61,8 +62,7 @@ sort_options = ["TimeStamp 昇順", "TimeStamp 降順", "名前 昇順", "名前
|
|
61 |
selected_sort = st.sidebar.selectbox("写真の並び替え", sort_options, key="selected_sort")
|
62 |
|
63 |
|
64 |
-
|
65 |
-
photo_df = pd.DataFrame(columns=["File Name", "Timestamp", "Tags"])
|
66 |
|
67 |
# タグ検索があればフィルタリング
|
68 |
if tag_search_input:
|
|
|
52 |
|
53 |
# タグ検索用のテキスト入力
|
54 |
tag_search_input = st.sidebar.text_input("タグ検索 (カンマでセパレート)", "", key="tag_search")
|
55 |
+
# インデックスを初期化
|
56 |
+
photo_df = pd.DataFrame(columns=["File Name", "Timestamp", "Tags"])
|
57 |
# ページングのための変数
|
58 |
page_num = st.sidebar.number_input("ページ番号", value=1, min_value=1, max_value=(len(photo_df) // PAGE_SIZE) + 1, key="page_num")
|
59 |
|
|
|
62 |
selected_sort = st.sidebar.selectbox("写真の並び替え", sort_options, key="selected_sort")
|
63 |
|
64 |
|
65 |
+
|
|
|
66 |
|
67 |
# タグ検索があればフィルタリング
|
68 |
if tag_search_input:
|