Spaces:
Sleeping
Sleeping
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("'๋ด์ง์ค' ๋ฉค๋ฒ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.") | |