YEINJEONG commited on
Commit
4c8ddf7
β€’
1 Parent(s): 48fcc1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -52,4 +52,20 @@ st.write('μ €λŠ”', age, 'μ‚΄μž…λ‹ˆλ‹€')
52
  option = st.selectbox(
53
  'κ°€μž₯ μ’‹μ•„ν•˜λŠ” 색깔은 λ¬΄μ—‡μΈκ°€μš”?',
54
  ('νŒŒλž‘', '초둝', 'λΉ¨κ°•'))
55
- st.write('κ·€ν•˜κ°€ κ°€μž₯ μ’‹μ•„ν•˜λŠ” 색깔은', option)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  option = st.selectbox(
53
  'κ°€μž₯ μ’‹μ•„ν•˜λŠ” 색깔은 λ¬΄μ—‡μΈκ°€μš”?',
54
  ('νŒŒλž‘', '초둝', 'λΉ¨κ°•'))
55
+ st.write('κ·€ν•˜κ°€ κ°€μž₯ μ’‹μ•„ν•˜λŠ” 색깔은', option)
56
+
57
+ st.markdown("### ν…μŠ€νŠΈμ—μ„œ 'λ‰΄μ§„μŠ€ 멀버' μ°ΎκΈ°")
58
+
59
+ # μ‚¬μš©μžλ‘œλΆ€ν„° ν…μŠ€νŠΈ μž…λ ₯ λ°›κΈ°
60
+ input_text = st.text_area("글을 μž…λ ₯ν•˜μ„Έμš”")
61
+
62
+ newjeans_members = ["민지", "ν•˜λ‹ˆ", "λ‹€λ‹ˆμ—˜", "ν•΄λ¦°", "혜인"]
63
+
64
+ # λ²„νŠΌμ„ ν΄λ¦­ν•˜λ©΄ ν•¨μˆ˜ μ‹€ν–‰
65
+ if st.button('μ‹€ν–‰'):
66
+ result = [m for m in newjeans_members if m in input_text]
67
+ result_str = ', '.join(result)
68
+ if result:
69
+ st.write(f"κΈ€μ—μ„œ 찾은 'λ‰΄μ§„μŠ€' 멀버: {result_str}")
70
+ else:
71
+ st.write("'λ‰΄μ§„μŠ€' 멀버λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.")