Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,9 @@ def mbti(x):
|
|
43 |
return r
|
44 |
|
45 |
def chat(x):
|
46 |
-
x = f"{x}"
|
47 |
result = gradio_client.predict(
|
48 |
-
x
|
|
|
49 |
0.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
|
50 |
40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
51 |
0.85, # float, representing input in 'Temperature' Slider component
|
|
|
43 |
return r
|
44 |
|
45 |
def chat(x):
|
|
|
46 |
result = gradio_client.predict(
|
47 |
+
x.replace('friend','Human').replace('you','Assistant'),
|
48 |
+
# str representing input in 'User input' Textbox component
|
49 |
0.92, # float, representing input in 'Top-p (nucleus sampling)' Slider component
|
50 |
40, # int, representing input in 'Top-k (nucleus sampling)' Slider component
|
51 |
0.85, # float, representing input in 'Temperature' Slider component
|