Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,15 +43,15 @@ def mbti(x):
|
|
| 43 |
return r
|
| 44 |
|
| 45 |
def chat(x):
|
| 46 |
-
x = f"[***๋๋ ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"
|
| 47 |
x = x.replace('friend','Human').replace('you','Assistant')
|
| 48 |
print("\n" + f"{x}")
|
| 49 |
result = gradio_client.predict(
|
| 50 |
x,
|
| 51 |
# str representing input in 'User input' Textbox component
|
| 52 |
-
0.
|
| 53 |
40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
| 54 |
-
0.
|
| 55 |
30, # int, representing input in 'Max New Tokens' Slider component
|
| 56 |
1.2, # float, representing input in 'repetition_penalty' Slider component
|
| 57 |
fn_index=0
|
|
|
|
| 43 |
return r
|
| 44 |
|
| 45 |
def chat(x):
|
| 46 |
+
x = f"[***๋๋ Assistant์
๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"
|
| 47 |
x = x.replace('friend','Human').replace('you','Assistant')
|
| 48 |
print("\n" + f"{x}")
|
| 49 |
result = gradio_client.predict(
|
| 50 |
x,
|
| 51 |
# str representing input in 'User input' Textbox component
|
| 52 |
+
0.9, # float, representing input in 'Top-p (nucleus sampling)' Slider component
|
| 53 |
40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
| 54 |
+
0.65, # float, representing input in 'Temperature' Slider component
|
| 55 |
30, # int, representing input in 'Max New Tokens' Slider component
|
| 56 |
1.2, # float, representing input in 'repetition_penalty' Slider component
|
| 57 |
fn_index=0
|