Spaces:
Sleeping
Sleeping
Update app.py
Browse files40 unmodified lines414243444546474849505140 unmodified linesr = sorted(eval(result), key=lambda x : x['score'], reverse=True)return rdef chat(x):x = f"[***๋๋ Assistant์ ๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"x = x.replace('friend','Human').replace('you','Assistant')print("\n" + f"{x}")result = gradio_client.predict(x,# str representing input in 'User input' Textbox component40 unmodified lines41424344454647484950515240 unmodified linesr = sorted(eval(result), key=lambda x : x['score'], reverse=True)return rcount = 0def chat(x):x = f"[***๋๋ Assistant์ ๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"x = x.replace('friend','Human').replace('you','Assistant')print("\n" + str(count++) +"๋ฒ์งธ ์๋ต\n" + f"{x}")result = gradio_client.predict(x,# str representing input in 'User input' Textbox component
app.py+3-2