Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def mbti(x):
|
|
32 |
|
33 |
def chat(x):
|
34 |
result = gradio_client.predict(
|
35 |
-
|
36 |
0.9, # float, representing input in 'Top-p (nucleus sampling)' Slider component
|
37 |
50, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
38 |
0.7, # float, representing input in 'Temperature' Slider component
|
@@ -44,7 +44,7 @@ def chat(x):
|
|
44 |
|
45 |
def yn(x):
|
46 |
result = gradio_client.predict(
|
47 |
-
|
48 |
fn_index=2
|
49 |
)
|
50 |
return result
|
|
|
32 |
|
33 |
def chat(x):
|
34 |
result = gradio_client.predict(
|
35 |
+
x,# str representing input in 'User input' Textbox component
|
36 |
0.9, # float, representing input in 'Top-p (nucleus sampling)' Slider component
|
37 |
50, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
38 |
0.7, # float, representing input in 'Temperature' Slider component
|
|
|
44 |
|
45 |
def yn(x):
|
46 |
result = gradio_client.predict(
|
47 |
+
x, # str representing input in 'User input' Textbox component
|
48 |
fn_index=2
|
49 |
)
|
50 |
return result
|