Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,11 @@ 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 |
-
|
49 |
-
0.
|
50 |
-
|
51 |
-
1.
|
52 |
fn_index=0
|
53 |
)
|
54 |
return result
|
|
|
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
|
51 |
+
1.2, # float, representing input in 'repetition_penalty' Slider component
|
52 |
fn_index=0
|
53 |
)
|
54 |
return result
|