minalang commited on
Commit
617b9c5
โ€ข
1 Parent(s): 46b206f

add descriptions by tab

Browse files
Files changed (1) hide show
  1. app.py +30 -6
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.Row():
65
- rd = gr.Radio(MODEL_STRS, value='T5', type='index', label='Model Selection', show_label=True, interactive=True)
66
- with gr.Column(scale=5): # ์ฑ—๋ด‡ ๋ถ€๋ถ„
67
- chatbot = gr.Chatbot(label="T5", bubble_full_width=False)
68
- with gr.Row():
69
- txt = gr.Textbox(show_label=False, placeholder='์—ฐ์•  ๊ด€๋ จ ์งˆ๋ฌธ์„ ์ž…๋ ฅํ•˜์„ธ์š”!', container=False)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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])