Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def mbti(x):
|
|
| 44 |
def chat(x):
|
| 45 |
result = gradio_client.predict(
|
| 46 |
x,# str representing input in 'User input' Textbox component
|
| 47 |
-
0.
|
| 48 |
30, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
| 49 |
0.7, # float, representing input in 'Temperature' Slider component
|
| 50 |
20, # int, representing input in 'Max New Tokens' Slider component
|
|
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
|
|
| 66 |
inputs="text",
|
| 67 |
outputs="text",
|
| 68 |
description="chat",
|
| 69 |
-
examples= [["\nfriend: ๋๋ ๊ฟ์ด ๋ญ์ผ? \nyou: "],["\
|
| 70 |
)
|
| 71 |
|
| 72 |
bb = gr.Interface(
|
|
|
|
| 44 |
def chat(x):
|
| 45 |
result = gradio_client.predict(
|
| 46 |
x,# str representing input in 'User input' Textbox component
|
| 47 |
+
0.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
|
| 48 |
30, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
| 49 |
0.7, # float, representing input in 'Temperature' Slider component
|
| 50 |
20, # int, representing input in 'Max New Tokens' Slider component
|
|
|
|
| 66 |
inputs="text",
|
| 67 |
outputs="text",
|
| 68 |
description="chat",
|
| 69 |
+
examples= [["\nfriend: ๋๋ ๊ฟ์ด ๋ญ์ผ? \n\n### \nyou: "],["\nyou: ์ ์ฌ์ฌํด \nfriend: ๋ญ ํ๊ณ ์ถ์๊ฑฐ ์์ด? \n\n### \nyou: "]]
|
| 70 |
)
|
| 71 |
|
| 72 |
bb = gr.Interface(
|