Spaces:
Paused
Paused
add descriptions by tab
Browse files
app.py
CHANGED
@@ -61,12 +61,36 @@ if __name__=='__main__':
|
|
61 |
MODELS.append(KoAlpaca())
|
62 |
|
63 |
with gr.Blocks(theme=theme) as demo:
|
64 |
-
with gr.
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
txt.submit(chat, [txt, chatbot], [txt, chatbot])
|
72 |
rd.select(change_model_index, [rd, chatbot], [chatbot])
|
|
|
61 |
MODELS.append(KoAlpaca())
|
62 |
|
63 |
with gr.Blocks(theme=theme) as demo:
|
64 |
+
with gr.Tab("์๊ฐ"):
|
65 |
+
gr.Markdown(
|
66 |
+
"""
|
67 |
+
# KOMUCHAT : Korean community-style relationship counseling chabot
|
68 |
+
KOMUChat: ์จ๋ผ์ธ ์ปค๋ฎค๋ํฐ ์คํ์ผ์ ์ฐ์ ์๋ด์ฑ๋ด
|
69 |
+
### ๊ฐ์
|
70 |
+
์ฌ๋๋ค์ ์ค์ ๋ํ๋ฅผ ๋ฐ์ํ๊ธฐ ์ํด ํ๊ตญ ์ปค๋ฎค๋ํฐ ์ํจ์ฝ๋ฆฌ์ + ์ธ์คํฐ์ฆ์์ ์์งํ ์ฝ 3๋ง๊ฑด์ ์ง๋ฌธ-๋ต๋ณ ๋ํ ๋ฐ์ดํฐ์
์ผ๋ก ํ์ต์ํจ ์ฑ๋ด<br>
|
71 |
+
์ด๋ณ, ๋ฐ์ดํธ์ฝ์ค, ์ ๋ฌผ ๋ฑ ์ฐ์ ์ ๊ด๋ จ๋ ์ง๋ฌธ์ ๋ํด ์จ๋ผ์ธ ์ปค๋ฎค๋ํฐ์์ ์๋ดํ๋ ๊ฒ ๊ฐ์ด ์๋ตํฉ๋๋ค.<br>
|
72 |
+
<b>paust-t5-large</b>๋ชจ๋ธ(ํ๊ท ์๋ต์๊ฐ n์ด)๊ณผ <b>polyglot-ko-12.8b-safetensors</b> ๋ชจ๋ธ(ํ๊ท ์๋ต์๊ฐ n์ด)์ ํ์ธํ๋ํ์ฌ ์ ๊ณตํฉ๋๋ค.<br>
|
73 |
+
๋ฐ๋ชจ์์ ์ ํํ์ฌ ์ด์ฉํด๋ณด์ค ์ ์์ต๋๋ค.
|
74 |
+
|
75 |
+
### ์๋ต์์
|
76 |
+
| Question | Answer |
|
77 |
+
| --- | --- |
|
78 |
+
| ํค์ด์ก์๋๋ค | ํ๋ด ๋ ์ข์ ์ธ์ฐ ๋ํ๋ ๊ฑฐ์ผ |
|
79 |
+
| ๋๋ผ๋ง๋ง ์ฃผ๊ตฌ์ฅ์ฐฝ ๋ณด๋์ค | ๋ญ ๋ณด๊ณ ์์ผ์ ๊ฐ์ |
|
80 |
+
| ๊ฒฐํผ๊น์ง ์๊ฐํ๋ ์ํ์ผ์๋ก ๋ ๊น๊นํ๊ฒ ๋ฐ์ง๊ฒ ๋ผ? | ์๋ฌด๋๋ ๊ทธ๋ฐ ๊ฑฐ ๊ฐ์ |
|
81 |
+
| ISTJ ์ฌ์๊ฐ ๋จ์ํํ
๊ด์ฌ์์ผ๋ฉด ์ด๋ป๊ฒ ํด? | ์ฐ๋ฝ ์์ฃผ ํ๊ณ ์ทจํฅ ๋ง์ด ๋ฌผ์ด๋ณด๊ณ ์์ฃผ๋ ์๋์ด๋ ๊พธ์คํ ๋ง๋๋ ค ํจ |
|
82 |
+
| #์ฒญ์#๋ค์ ์ฐ์ ๋ ๊ฐ์๊ธฐ ์์ํ๋ค๊ณ ์๊ฐํด? | ๋๋ ์ง์ ์ ๊ธฐํ ๊ฒ ์ฐ์ ์ ๋ํ ๊ธฐ๋๊ฐ ๋จ์ด์ง๋ฉด ํ๊ณ ์๋๋ใ
ใ
ใ
|
|
83 |
+
|
84 |
+
### ์ฌ์ฉ๊ธฐ์
|
85 |
+
<img src="https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=Python&logoColor=white"><img src="https://img.shields.io/badge/PyTorch-EE4C2C?style=for-the-badge&logo=PyTorch&logoColor=white">
|
86 |
+
""")
|
87 |
+
with gr.Tab("๋ฐ๋ชจ"):
|
88 |
+
with gr.Row():
|
89 |
+
rd = gr.Radio(MODEL_STRS, value='T5', type='index', label='Model Selection', show_label=True, interactive=True)
|
90 |
+
with gr.Column(scale=5): # ์ฑ๋ด ๋ถ๋ถ
|
91 |
+
chatbot = gr.Chatbot(label="T5", bubble_full_width=False)
|
92 |
+
with gr.Row():
|
93 |
+
txt = gr.Textbox(show_label=False, placeholder='์ฐ์ ๊ด๋ จ ์ง๋ฌธ์ ์
๋ ฅํ์ธ์!', container=False)
|
94 |
|
95 |
txt.submit(chat, [txt, chatbot], [txt, chatbot])
|
96 |
rd.select(change_model_index, [rd, chatbot], [chatbot])
|