Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,9 @@ def mbti(x):
|
|
46 |
def chat(x):
|
47 |
x = f"[***๋๋ Assistant์
๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"
|
48 |
x = x.replace('friend','Human').replace('you','Assistant')
|
|
|
|
|
|
|
49 |
print("\n___________________\n" + f"{x}")
|
50 |
result = gradio_client.predict(
|
51 |
x,
|
|
|
46 |
def chat(x):
|
47 |
x = f"[***๋๋ Assistant์
๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"
|
48 |
x = x.replace('friend','Human').replace('you','Assistant')
|
49 |
+
x_list = x.rsplit('\n',1)
|
50 |
+
|
51 |
+
x = x_list[0]+"\n\n### \n"+x_list[1]
|
52 |
print("\n___________________\n" + f"{x}")
|
53 |
result = gradio_client.predict(
|
54 |
x,
|