kikuepi commited on
Commit
4ef6b50
ยท
1 Parent(s): 8105024

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -26
app.py CHANGED
@@ -57,14 +57,6 @@ if uploaded_file:
57
  if 'result' not in st.session_state:
58
  st.session_state.result = False
59
 
60
- person_result = st.selectbox(
61
- '็ตๆžœใฎไฟฎๆญฃ',
62
- ('ๆ˜ฅ', 'ๅค', '็ง‹', 'ๅ†ฌ')
63
- )
64
-
65
- if person_result:
66
- season_type = person_result
67
-
68
  st.write(f"ใƒ‘ใƒผใ‚ฝใƒŠใƒซใ‚ซใƒฉใƒผใฏ {season_type} ใงใ™")
69
 
70
  # ใŠใ™ใ™ใ‚ใฎๅ•†ๅ“ใ‚’่ฆ‹ใ‚‹ใƒœใ‚ฟใƒณ
@@ -76,21 +68,8 @@ if uploaded_file:
76
  if st.session_state.result and not st.session_state.show_video:
77
  view_recommend = st.button("ใŠใ™ใ™ใ‚ใฎๅ•†ๅ“ใ‚’่ฆ‹ใ‚‹")
78
  if view_recommend:
79
- st.session_state.show_video = True
80
-
81
- # ใ‚นใ‚ญใƒƒใƒ—ใ•ใ‚Œใšใซๅ‹•็”ปใ‚’่กจ็คบใ™ใ‚‹
82
- if st.session_state.show_video and not st.session_state.skip:
83
- st.video("sample.mp4", start_time=0)
84
-
85
- # ๅ‹•็”ปใฎใ‚นใ‚ญใƒƒใƒ—ใƒœใ‚ฟใƒณใŒๆŠผใ•ใ‚ŒใŸใ‚‰ใ€ใƒฌใ‚ณใƒกใƒณใƒ‰ๆ–‡ใ‚’่กจ็คบใ™ใ‚‹
86
- if st.session_state.show_video and not st.session_state.skip:
87
- time.sleep(5)
88
- st.session_state.show_video = False
89
- st.session_state.skip = True
90
- if st.session_state.skip:
91
- st.write(
92
- """
93
- ใŠใ™ใ™ใ‚ใฎๅ•†ๅ“ใงใ™ใ€‚
94
- """)
95
- st.image("ๆœ.png")
96
-
 
57
  if 'result' not in st.session_state:
58
  st.session_state.result = False
59
 
 
 
 
 
 
 
 
 
60
  st.write(f"ใƒ‘ใƒผใ‚ฝใƒŠใƒซใ‚ซใƒฉใƒผใฏ {season_type} ใงใ™")
61
 
62
  # ใŠใ™ใ™ใ‚ใฎๅ•†ๅ“ใ‚’่ฆ‹ใ‚‹ใƒœใ‚ฟใƒณ
 
68
  if st.session_state.result and not st.session_state.show_video:
69
  view_recommend = st.button("ใŠใ™ใ™ใ‚ใฎๅ•†ๅ“ใ‚’่ฆ‹ใ‚‹")
70
  if view_recommend:
71
+ st.write(
72
+ """
73
+ ใŠใ™ใ™ใ‚ใฎๅ•†ๅ“ใงใ™ใ€‚
74
+ """)
75
+ st.image("ๆœ.png")