Spaces:
Sleeping
Sleeping
File size: 581 Bytes
10a771c 7647f8a 10a771c 7647f8a 10a771c 7647f8a 10a771c 7647f8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import streamlit as st
st.markdown("### ํ
์คํธ์์ '๋ด์ง์ค ๋ฉค๋ฒ' ์ฐพ๊ธฐ")
# ์ฌ์ฉ์๋ก๋ถํฐ ํ
์คํธ ์
๋ ฅ ๋ฐ๊ธฐ
input_text = st.text_area("๊ธ์ ์
๋ ฅํ์ธ์")
newjeans_members = ["๋ฏผ์ง", "ํ๋", "๋ค๋์", "ํด๋ฆฐ", "ํ์ธ"]
# ๋ฒํผ์ ํด๋ฆญํ๋ฉด ํจ์ ์คํ
if st.button('์คํ'):
result = [m for m in newjeans_members if m in input_text]
result_str = ', '.join(result)
if result:
st.write(f"๊ธ์์ ์ฐพ์ '๋ด์ง์ค' ๋ฉค๋ฒ: {result_str}")
else:
st.write("'๋ด์ง์ค' ๋ฉค๋ฒ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.")
|