Spaces:
Sleeping
Sleeping
File size: 12,160 Bytes
667ac76 2c71a11 667ac76 604e9ac 667ac76 119dcae 023d4d2 119dcae 9b67488 119dcae 9b67488 119dcae c028710 9b67488 c028710 119dcae c028710 9b67488 119dcae c028710 119dcae c028710 9b67488 119dcae c028710 119dcae c028710 119dcae c028710 119dcae c028710 119dcae c028710 119dcae c028710 9b67488 c028710 119dcae c028710 119dcae c028710 9b67488 c028710 119dcae c028710 119dcae c028710 d4216b5 c028710 119dcae c028710 119dcae 9b67488 119dcae 9b67488 c028710 119dcae c028710 9b67488 119dcae d4216b5 c043981 c028710 9b67488 119dcae 428eab8 c028710 119dcae c028710 119dcae c028710 119dcae c028710 7133f4c 9b67488 c028710 119dcae c028710 119dcae c028710 119dcae c028710 119dcae c028710 023d4d2 119dcae 667ac76 2c71a11 667ac76 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
import streamlit as st
import pandas as pd
import faiss
import pickle
from sentence_transformers import SentenceTransformer
from streamlit.components.v1 import html
import numpy as np
# ์ ๋ชฉ ํ์
st.title('์ง์ฅ ๋ด ๊ดด๋กญํ ์๋ ํ๋
๊ธฐ')
st.write("<br><br>", unsafe_allow_html=True) # 2์ค ๋์ด์ฐ๊ธฐ
st.markdown("์ด์ฉ๋ฐฉ๋ฒ")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("1. ์ฌ์ฉ์์ ์ง์ฅ ๋ด ๊ดด๋กญํ ์์ฌ ์ฌ๋ก ๋๋ ๊ฒฝํ์ ์
๋ ฅ ์นธ์ ๋ฌธ์ฅ์ผ๋ก ์ ์ด์ฃผ์ธ์")
st.write("2. ๋ฌธ์ฅ์ ์
๋ ฅํ๊ณ ๋ถ์ ๋ฒํผ์ ๋๋ฌ์ฃผ์ธ์")
st.write("3. ๋ถ์์ด ๋๋๋ฉด ํ ํ์์ผ๋ก ๊ดด๋กญํ ์ฌ๋ถ, ๋ฒ์ฃผ, ์ ์ฌ ์ฌ๋ก๊ฐ ์ถ๋ ฅ๋ฉ๋๋ค")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
# ๋ฐ์ดํฐ ๋ก๋
df_cases = pd.read_excel('แแ
ตแจแแ
กแผแแ
ฌแ
แ
ฉแธแแ
ตแท_071424.xlsx')
df_law_firms = pd.read_excel('แแ
ฉแแ
ฎแแ
ฅแธแแ
ตแซแแ
ฅแผแแ
ฉ.xlsx')
# SentenceTransformer ๋ชจ๋ธ ๋ก๋
model = SentenceTransformer('bongsoo/kpf-sbert-v1') # 768์ฐจ์
# ์ ์ฅ๋ ์๋ฒ ๋ฉ์ pickle ํ์ผ์์ ๋ก๋
with open('embeddingsNorm_แแ
ตแจแแ
กแผแแ
ฌแ
แ
ฉแธแแ
ตแท071424_kpfsbert.pkl', 'rb') as f:
embeddings = pickle.load(f)
# ์๋ฒ ๋ฉ์ ์ฝ์ฌ์ธ ์ ์ฌ๋ ๊ณ์ฐ์ ์ํด ์ ๊ทํ
embeddings_norm = embeddings / np.linalg.norm(embeddings, axis=1, keepdims=True)
# FAISS ์ธ๋ฑ์ค ์์ฑ (๋ด์ ๊ฒ์์ฉ)
d = embeddings_norm.shape[1]
index = faiss.IndexFlatIP(d)
index.add(embeddings_norm)
# ์ง์ฅ ๊ดด๋กญํ ์ฌ๋ก ๊ฒ์
st.header('์ง์ฅ ๊ดด๋กญํ ์ฌ๋ก ๊ฒ์')
query_sentence = st.text_area('๊ฒ์ํ ๋ฌธ์ฅ์ ์
๋ ฅํ์ธ์', '''์์: ํ์ฌ ๊ณผ์ฅ๋์ด ํ์์์ "์กฐ์ฉํ ์์ด"๋ผ๋ฉฐ ์ผ๋จ์น๊ณ , ๋๋ฃ๋ค๋ ํ์ ๋ฑ ์ฌ๋ด ๋ชจ์์์ ์ ๋ฅผ ๋ฐ๋๋ฆฝ๋๋ค.''')
if st.button('๋ถ์'):
# ์
๋ ฅ๋ ๋ฌธ์ฅ์ ์๋ฒ ๋ฉ
query_embedding = model.encode([query_sentence])
# ์
๋ ฅ๋ ๋ฌธ์ฅ์ ์๋ฒ ๋ฉ์ ์ ๊ทํ
query_embedding_norm = query_embedding / np.linalg.norm(query_embedding, axis=1, keepdims=True)
# ์ ์ฌ๋ ๊ฒ์ (์์ 5๊ฐ ๋ฌธ์ฅ)
k = 5
distances, indices = index.search(query_embedding_norm, k)
# ๋ด์ ๊ฐ์ ์ฝ์ฌ์ธ ์ ์ฌ๋๋ก ๋ณํ
cosine_similarities = distances[0]
# ๊ฒฐ๊ณผ๋ฅผ ์ ์ฅํ ๋ฐ์ดํฐํ๋ ์ ์์ฑ
df_result = df_cases.iloc[indices[0]].copy()
df_result['์ ์ฌ๋'] = cosine_similarities
# ์ ์ฌ๋ ๊ธฐ์ค ๋ด๋ฆผ์ฐจ์์ผ๋ก ์ ๋ ฌ
df_result = df_result.sort_values(by='์ ์ฌ๋', ascending=False)
# ๊ฒฐ๊ณผ ํ์
st.write('์ ์ฌํ ์ฌ๋ก ๋ถ์ ๊ฒฐ๊ณผ:')
st.write(df_result)
# ์๋ด ํ๋ก๊ทธ๋จ ์๊ฐ
st.write("<br><br><br><br>", unsafe_allow_html=True) # 4์ค ๋์ด์ฐ๊ธฐ
st.markdown("# ์ง์ฅ ๋ด ๊ดด๋กญํ ์๋ด ํ๋ก๊ทธ๋จ")
st.write("<br><br><br>", unsafe_allow_html=True) # 3์ค ๋์ด์ฐ๊ธฐ
st.markdown("## 1. ๊ทผ๋ก๋ณต์ง๋ท EAP ์๋น์ค")
st.write("<br><br>", unsafe_allow_html=True) # 2์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โ EAP(Employee Assistance program, ๊ทผ๋ก์์ง์ํ๋ก๊ทธ๋จ)")
st.write("- ๊ทผ๋ก๋ณต์ง๊ณต๋จ์์ ์ ๊ณตํ๋ EAP ์๋ด์์คํ
์ ๊ทผ๋ก์์ ์ง๋ฌด ๋ง์กฑ๋์ ์์ฐ์ฑ์ ๋ถ์ ์ ์ํฅ์ ๋ฏธ์น๋ ๋ฌธ์ ๋ค์ ํด๊ฒฐํ๊ธฐ ์ํ ๋ณต์ง์ ๋์
๋๋ค")
st.write("- ๊ทผ๋ก๋ณต์ง๊ณต๋จ์ ์ค์๊ธฐ์
์ EAP ๋์
์ ์ด์งํ๊ณ ๊ทผ๋ก์์ ๋ฌธ์ ํด๊ฒฐ์ ๋๊ธฐ ์ํด ๊ทผ๋ก๋ณต์ง๋ท์ ํตํด EAP ์๋น์ค๋ฅผ ๋ฌด์์ผ๋ก ์ ๊ณตํ๊ณ ์์ต๋๋ค")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โก ์ง์๋์")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("- ์์๊ทผ๋ก์์ 300์ธ ๋ฏธ๋ง ์ค์๊ธฐ์
๊ณผ ์์ ๊ทผ๋ก์๋ก์, ๊ทผ๋ก๋ณต์ง๋ท ํ์๊ฐ์
ํ ์๋ด์ ์ ์ฒญํ ์")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โข ์ง์๋ด์ฉ")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("- ์จ๋ผ์ธ: ๊ฒ์ํ EAP ์๋ด, ํฌ๋ง๋๋ฆผ ํก(๋ชจ๋ฐ์ผ EAP ์๋ด), ์ ํ EAP ์๋ด")
st.write("- ์คํ๋ผ์ธ: ๊ทผ๋ก์ ์๋ด(1:1 ๋๋ฉด), ๊ธฐ์
์๋ด(์ง๋จ ํ๋ก๊ทธ๋จ, ํน๊ฐ/๊ต์ก)")
st.write("- ์๋น์ค ๋ถ์ผ: ์ง์ฅ๋ด ๊ดด๋กญํ, ์ง๋ฌด์คํธ๋ ์ค, ์คํธ๋ ์ค ๊ด๋ฆฌ, ์ ์๋ฌธ์ , ๋์ธ๊ด๊ณ ๋ฑ")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โฃ ๊ทผ๋ก๋ณต์ง๋ท EAP ์๋น์ค ์ด์ฉ์ ์ฐจ")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("๊ฐ. ํ์๊ฐ์
(ํ์): ๊ทผ๋ก๋ณต์ง๋ท์์ ๊ธฐ์
๋๋ ๊ฐ์ธ ํ์ ๊ฐ์
")
st.write("๋. ์๋ด ์ ์ฒญ: ๊ทผ๋ก์์ง์ํ๋ก๊ทธ๋จ(EAP) โ ์จ๋ผ์ธ ์๋ด/์คํ๋ผ์ธ ์๋ด ์ ํ โ ์๋ด ์ ํ ์ ํ โ ์๋ด ๋ถ์ผ ์ ํ โ ์๋ด์ฌ ์ ํ โ ๊ณ ์ฉ๋ณดํ์กฐํ โ ์๋ด์ฌ ์ฌ ํด๋ฆญ, ์ ์ฒญ")
st.write("*์๋ด ์ ์ฒญํ์ธ: ๋ก๊ทธ์ธ ํ โ์ด์ฉ ํํฉโ์์ ํ์ธ ๊ฐ๋ฅ")
st.write("๋ค. ์๋ด ์ผ์ ๋ฐ ์ฅ์ ํ์: ์๋ด์ฌ๊ฐ ์ ์ฒญ์์๊ฒ ์ง์ ์ ํ ์ฐ๋ฝํ์ฌ ์๋ด ์ผ์ ๋ฐ ์ฅ์ ํ์")
st.write("๋ผ. ์๋ด ์งํ: ๊ฒ์ํ์๋ด 24์๊ฐ ๋ด ๋ต๋ณ, ํก/์ ํ/ํ์/๊ทผ๋ก์ ์๋ด 1ํ๋น 50๋ถ ์งํ")
st.write("๋ง. ๋ง์กฑ๋ ํ๊ฐ: ์๋ด ํ ๋ง์กฑ๋ ํ๊ฐ(๋งค ํ๊ธฐ ์์คํ
์์ ์๋ ๋ฌธ์ ๋ฐ์ก ๋๋ ์ ํ ์ค๋ฌธ)")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โค ์ด์ฉ ํ์")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("๊ฐ์ธํ์: ์จ/์คํ๋ผ์ธ ๋ชจ๋ ์ ํ ์๋ด์ ํฉํ์ฌ 1์ธ๋น ์ฐ ์ต๋ 7ํ ์ด์ฉ ๊ฐ๋ฅ")
st.write("*๋จ, ๊ฒ์ํ ์๋ด์ ํ์ ์ ํ ์์")
st.write("๊ธฐ์
ํ์: ๊ธฐ์
์ผ๋ก ์งํ ์, EAP ์ด์ฉ ์ฐ์ฐจ 3๋
์ฐจ๊น์ง ๋ฌด์ ์ง์")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โฅ ์คํ๋ผ์ธ ์๋ด")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("๊ทผ๋ก์ ์๋ด ์ ์ฒญ: ๋ด๋ฐฉ, ์ฐพ์๊ฐ๋ ์๋น์ค")
st.write("*๊ฐ์ธ๋น ๋งค๋
7ํ๊น์ง, ์๊ฐ ๋ฐ ์๋ด ์ฅ์๋ ์๋ด์ฌ์ ํ์ํ์ฌ ์งํ")
st.write("๊ธฐ์
์๋ด ์ ์ฒญ: ์์ ๊ทผ๋ก์์ 300์ธ ๋ฏธ๋ง ์ค์๊ธฐ์
์ด ํ์๊ฐ์
(๊ธฐ์
ํ์) ํ ์ ์ฒญ")
st.write("๊ธฐ์
์ง๋จ EAP ํ๋ก๊ทธ๋จ: 1ํ๋น ์ต์ 5๋ช
\~์ต๋ 20๋ช
, ์ด 3ํ๊น์ง ์ด์ฉ๊ฐ๋ฅ(๊ธฐ์
๋น ๋งค๋
3ํ ํ๋ ์ค์)")
st.write("*์๋ด์ฌ๊ฐ ์ฌ๋ด์ ๋ฐฉ๋ฌธํ์ฌ ์์ ๊ทผ๋ก์๋ค์ด ๋์์ ๋ชจ์ธ ์ํ์์ ํน๊ฐ/๊ต์ก ๋ฑ ์ง๋จ ํ๋ก๊ทธ๋จ์ ๋ฐ์ ์ ์์")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
url = "https://welfare.comwel.or.kr/default/eap/board.do?mCode=D020010000"
st.markdown(f'<a href="{url}" target="_blank"><button style="padding:10px 20px; font-size:16px;">EAP ์จ๋ผ์ธ ์๋น์ค ๋งํฌ</button></a>', unsafe_allow_html=True)
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
url2 = "https://welfare.comwel.or.kr/default/eap/emp.do?mCode=D030010010&kindCd=EAP03®ionCd=16"
st.markdown(f'<a href="{url2}" target="_blank"><button style="padding:10px 20px; font-size:16px;">EAP ์คํ๋ผ์ธ ์๋น์ค ๋งํฌ</button></a>', unsafe_allow_html=True)
st.write("<br><br><br>", unsafe_allow_html=True) # 3์ค ๋์ด์ฐ๊ธฐ
st.markdown("## 2. ๊ณ ์ฉ๋
ธ๋๋ถ ๊ณ ๊ฐ์๋ด์ผํฐ")
st.write("<br><br>", unsafe_allow_html=True) # 2์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โ ๊ณ ์ฉ๋
ธ๋๋ถ ์๋ด์ผํฐ")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("- ๊ทผ๋ก์์ ์์ธ์ฌ์
์์ ๊ณ ์ฉ/๋
ธ๋๋ถ์ผ ๊ถ๊ธ์ฆ๊ณผ ๊ณ ๋ฏผ์ ๋ํด ์ ํ์ ์ธํฐ๋ท์ ํตํด ์๋ดํ๋ ๊ธฐ๊ด์
๋๋ค")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โก 1350 ์ ํ ์๋ด")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("์ด์ฉ์๊ฐ: ํ์ผ 9์\~18์")
st.write("- ์ด์ฉ์ ์ฐจ: ๊ณ ๊ฐ์๋ด์ผํฐ ์ ํ์ฐ๊ฒฐ(๊ตญ๋ฒ์์ด 1350, ์ ๋ฃ) โ ์๋ด ๋ถ๋ฅ ์ ํ(์๋ด ๋ถ์ผ ARS ์ ํ) โ ์๋ด์ ์ฐ๊ฒฐ(์ ํ ์๋ด)")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โข 1350 ๋ชจ๋ฐ์ผ ์๋ด")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("- ์ด์ฉ์๊ฐ: ํ์ผ 9์\~16์(์ ์ฌ์๊ฐ 12์\~13์ ์ ์ธ)")
st.write("์๋ด ๋ด์ฉ์ ๊ณต๊ฐ๋๋ฉฐ, ๋ฌธ์ ๋ด์ฉ์ 8 ๊ทผ๋ฌด์๊ฐ ์ด๋ด์ ๋ต๋ณํ๋ ๋น ๋ฅธ ์๋ด ์ง์")
st.write("*๋น๊ณต๊ฐ ์๋ด ํ์ ์ ๋น ๋ฅธ ์ธํฐ๋ท ์๋ด ์ด์ฉ ๊ถ์ฅ")
st.write("*๊ณตํด์ผ์ ๋ฌธ์ํ ๋ด์ฉ์ ํ์ผ ๊ทผ๋ฌด์๊ฐ์ ๋ต๋ณ ๋ฐ์ ์ ์์")
st.write("- ์๋น์ค ๊ตฌ์ฑ: FAQ(๋ถ์ผ๋ณ ์์ฃผ ๋ฌธ์ํ๋ ๋ด์ฉ ์กฐํ), ์๋ด์ ์ฒญ(๊ณ ์ฉ๋
ธ๋๋ถ ๊ณ ๊ฐ์๋ด์ผํฐ์ ์ ๋ฌธ์๋ด์ฌ์๊ฒ ์๋ด ์ ์ฒญ, ๋ฌธ์ ๋ด์ฉ์ 100์ ์ด๋ด๋ก ์ ํ), MY์๋ด(์ ์ฒญํ ์๋ด์ ๋ํ ๋ต๋ณ ์กฐํ), Best์๋ด(์กฐํ์๊ฐ ๋ง์ ์๋ด๋ด์ฉ์ ๋ณผ ์ ์์)")
st.write("์ด์ฉ์ ์ฐจ: ๋ชจ๋ฐ์ผ์๋ด ์ฑ๋์ฐ๊ฒฐ(1350.moel.go.kr) โ ๋ชจ๋ฐ์ผ ์๋ด์ ์ฒญ โ ์ค์๊ฐ ์๋ด์ ์ฒญ(์๋ด์ง๋ฌธ ๋ด์ฉ 100์ ์ด๋ด ์
๋ ฅ) โ ๋ต๋ณํ์ธ(MY์๋ด์์ ๋ต๋ณํ์ธ)")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
url4 = "https://1350.moel.go.kr/"
st.markdown(f'<a href="{url4}" target="_blank"><button style="padding:10px 20px; font-size:16px;">1350 ๋ชจ๋ฐ์ผ ์๋ด ๋งํฌ</button></a>', unsafe_allow_html=True)
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.markdown("#### โฃ ๋น ๋ฅธ์ธํฐ๋ท ์๋ด")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("- ์ด์ฉ์๊ฐ: ํ์ผ 9์~18์")
st.write("*์ฃผ๋ง ๋ฐ ๊ณตํด์ผ์ ๊ทผ๋ฌดํ์ง ์์")
st.write("- ๋น ๋ฅธ ์ธํฐ๋ท ์๋ด์ ๊ณ ์ฉ๋
ธ๋๋ถ ํํ์ด์ง์์ ์๋น์ค๊ฐ ์ ๊ณต๋ฉ๋๋ค")
st.write("- ์๋น์ค ๋ฉ๋ด: ์ง๋ฌธ/๋ต๋ณ ๊ฒ์, ์๋ด๋ฑ๋ก, ๋ฏผ์ํ์ธ>๋์๋ฏผ์")
st.write("*๋จ์์ง์ 7์ผ, ๋ฒ๋ น์ง์ 14์ผ ์ด๋ด ๋ต๋ณ")
st.write("*์ง์ ๋ด์ฉ ๋น๊ณต๊ฐ")
st.write("์ด์ฉ์ ์ฐจ: ๋น ๋ฅธ์ธํฐ๋ท์๋ด ์ฑ๋์ฐ๊ฒฐ(๋ฏผ์์ ์ฒญ>๋น ๋ฅธ์ธํฐ๋ท์๋ด) โ ๋ณธ์ธํ์ธ โ ์ธํฐ๋ท ์๋ด์ ์ฒญ(์๋ด๋ฑ๋ก ํด๋ฆญ ํ 100์ ์ด๋ด ๋ฑ๋ก) โ ๋ต๋ณํ์ธ(๋ฏผ์ํ์ธ>๋์๋ฏผ์)")
st.write("<br><br>", unsafe_allow_html=True) # 2์ค ๋์ด์ฐ๊ธฐ
url3 = "https://1350.moel.go.kr/home/hp/main/hpmain.do "
st.markdown(f'<a href="{url3}" target="_blank"><button style="padding:10px 20px; font-size:16px;">๊ณ ์ฉ๋
ธ๋๋ถ ๊ณ ๊ฐ์๋ด์ผํฐ ๋งํฌ</button></a>', unsafe_allow_html=True)
st.write("<br><br><br><br>", unsafe_allow_html=True) # 4์ค ๋์ด์ฐ๊ธฐ
# HTML ํ์ผ ํ์
st.header('๋
ธ๋ฌด๋ฒ์ธ ์์น ์๋ฆผ์ด')
st.write("<br><br>", unsafe_allow_html=True) # 2์ค ๋์ด์ฐ๊ธฐ
st.markdown("์ด์ฉ๋ฐฉ๋ฒ")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
st.write("1. ๊ทผ๋ก๋ณต์ง๊ณต๋จ ๋ํ ์๊ท๋ชจ ์ฌ์
์ฅ์ ๋ณดํ์ฌ๋ฌด ์
๋ฌด๋ฅผ ๋ด์ฃผ๋ ์ ๊ตญ ๋จ์ ๋
ธ๋ฌด๋ฒ์ธ ์์น ์ง๋์
๋๋ค")
st.write("2. ์ง๋๋ ํ๋, ์ถ์, ์ด๋์ด ๊ฐ๋ฅํ๋ฏ๋ก ์ฌ์ฉ์์ ์์น์ ๊ฐ์ฅ ๊ฐ๊น์ด ๋
ธ๋ฌด๋ฒ์ธ๋ค์ ์ฐพ๊ณ ์์ด์ฝ์ ๋๋ฅด๋ฉด ํด๋น ๋
ธ๋ฌด๋ฒ์ธ๋ช
์ด ํ์
์ผ๋ก ๋ํ๋ฉ๋๋ค")
st.write("3. ๋
ธ๋ฌด๋ฒ์ธ๋ช
์ ํ์ธํ๊ณ ์ง๋ ๋ฐ ์
๋ ฅ ์นธ์ ํด๋น ๋
ธ๋ฌด๋ฒ์ธ๋ช
์ ์
๋ ฅํ์ฌ ๊ฒ์ ๋ฒํผ์ ๋๋ฌ์ฃผ์ธ์")
st.write("4. ํด๋น ๋
ธ๋ฌด๋ฒ์ธ์ ์ฃผ์ ๋ฐ ์ ํ๋ฒํธ ๋ฑ ์ถ๊ฐ์ ๋ณด๊ฐ ํ ํ์์ผ๋ก ์ถ๋ ฅ๋ฉ๋๋ค")
st.write("<br>", unsafe_allow_html=True) # 1์ค ๋์ด์ฐ๊ธฐ
# HTML ํ์ผ ์ฝ๊ธฐ
with open('แแ
ฉแแ
ฎแแ
ฅแธแแ
ตแซแแ
ขแแ
ตแผ.html', 'r', encoding='utf-8') as f:
html_content2 = f.read()
st.components.v1.html(html_content2, height=600)
# ๋
ธ๋ฌด๋ฒ์ธ ์ด๋ฆ ์
๋ ฅ
st.header('๋
ธ๋ฌด๋ฒ์ธ ์ ๋ณด ๊ฒ์')
law_firm_name = st.text_area('์ง๋์์ ํ์ธํ ๋
ธ๋ฌด๋ฒ์ธ๋ช
์ ๋์ด์ฐ๊ธฐ ํฌํจํ์ฌ ์ ์ด์ฃผ์ธ์', '''์ : ์ธ๋ฌด๋ฒ์ธ ํ์ค์๋''')
if st.button('๊ฒ์'):
selected_data = df_law_firms[df_law_firms['๊ธฐ๊ด๋ช
'] == law_firm_name]
if not selected_data.empty:
st.write('์ ํํ ๋
ธ๋ฌด๋ฒ์ธ ์ ๋ณด:')
st.write(selected_data)
else:
st.write('์
๋ ฅํ ๋
ธ๋ฌด๋ฒ์ธ์ ์ฐพ์ ์ ์์ต๋๋ค. ๋ค์ ์
๋ ฅํด์ฃผ์ธ์.') |