Spaces:
Paused
Paused
ElPlaguister
commited on
Commit
ยท
c8a4b93
1
Parent(s):
bbc20a6
Feat Special Token can be Replaced
Browse files- README.txt +1 -1
- app.py +1 -1
- model.py +2 -0
README.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# KOMUCHAT : Korean community-style relationship counseling
|
2 |
KOMUChat: ์จ๋ผ์ธ ์ปค๋ฎค๋ํฐ ์คํ์ผ์ ์ฐ์ ์๋ด์ฑ๋ด
|
3 |
### ๊ฐ์
|
4 |
์ฌ๋๋ค์ ์ค์ ๋ํ๋ฅผ ๋ฐ์ํ๊ธฐ ์ํด ํ๊ตญ ์ปค๋ฎค๋ํฐ ์ํจ์ฝ๋ฆฌ์ + ์ธ์คํฐ์ฆ์์ ์์งํ ์ฝ 3๋ง๊ฑด์ ์ง๋ฌธ-๋ต๋ณ ๋ํ ๋ฐ์ดํฐ์
์ผ๋ก ํ์ต์ํจ ์ฑ๋ด<br>
|
|
|
1 |
+
# KOMUCHAT : Korean community-style relationship counseling chatbot
|
2 |
KOMUChat: ์จ๋ผ์ธ ์ปค๋ฎค๋ํฐ ์คํ์ผ์ ์ฐ์ ์๋ด์ฑ๋ด
|
3 |
### ๊ฐ์
|
4 |
์ฌ๋๋ค์ ์ค์ ๋ํ๋ฅผ ๋ฐ์ํ๊ธฐ ์ํด ํ๊ตญ ์ปค๋ฎค๋ํฐ ์ํจ์ฝ๋ฆฌ์ + ์ธ์คํฐ์ฆ์์ ์์งํ ์ฝ 3๋ง๊ฑด์ ์ง๋ฌธ-๋ต๋ณ ๋ํ ๋ฐ์ดํฐ์
์ผ๋ก ํ์ต์ํจ ์ฑ๋ด<br>
|
app.py
CHANGED
@@ -58,7 +58,7 @@ if __name__=='__main__':
|
|
58 |
MODELS[1].placeholder = '์ฐ์ ๊ด๋ จ ์ง๋ฌธ์ ์
๋ ฅํ์ธ์. (KoAlpaca๋ ์ถ๋ก ์ 1๋ถ ์ด์ ์์๋ฉ๋๋ค!)'
|
59 |
|
60 |
with gr.Blocks(theme=prepare_theme()) as demo:
|
61 |
-
gr.HTML("<h1>KOMUChat : Korean community-style relationship counseling
|
62 |
with gr.Tab("์๊ฐ"):
|
63 |
gr.Markdown(readme)
|
64 |
for i in range(len(MODELS)):
|
|
|
58 |
MODELS[1].placeholder = '์ฐ์ ๊ด๋ จ ์ง๋ฌธ์ ์
๋ ฅํ์ธ์. (KoAlpaca๋ ์ถ๋ก ์ 1๋ถ ์ด์ ์์๋ฉ๋๋ค!)'
|
59 |
|
60 |
with gr.Blocks(theme=prepare_theme()) as demo:
|
61 |
+
gr.HTML("<h1>KOMUChat : Korean community-style relationship counseling chatbot</h1>")
|
62 |
with gr.Tab("์๊ฐ"):
|
63 |
gr.Markdown(readme)
|
64 |
for i in range(len(MODELS)):
|
model.py
CHANGED
@@ -16,5 +16,7 @@ class Model:
|
|
16 |
|
17 |
def chat(self, message, chat_history):
|
18 |
response = self.generate(message)
|
|
|
|
|
19 |
chat_history.append((message, response))
|
20 |
return "", gr.Chatbot(chat_history, label=self.name, bubble_full_width=False)
|
|
|
16 |
|
17 |
def chat(self, message, chat_history):
|
18 |
response = self.generate(message)
|
19 |
+
response = response.replace('#ํ์#', '๋')
|
20 |
+
response = response.replace('#์ฒญ์#', '๋')
|
21 |
chat_history.append((message, response))
|
22 |
return "", gr.Chatbot(chat_history, label=self.name, bubble_full_width=False)
|