Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,9 +37,10 @@ def mbti(x):
|
|
| 37 |
str_trans, # str representing input in 'User input' Textbox component
|
| 38 |
fn_index=2
|
| 39 |
)
|
| 40 |
-
|
|
|
|
| 41 |
|
| 42 |
-
return
|
| 43 |
|
| 44 |
def chat(x):
|
| 45 |
result = gradio_client.predict(
|
|
|
|
| 37 |
str_trans, # str representing input in 'User input' Textbox component
|
| 38 |
fn_index=2
|
| 39 |
)
|
| 40 |
+
|
| 41 |
+
r = sorted(result, key=lambda x : x['score'], reverse=True)
|
| 42 |
|
| 43 |
+
return r
|
| 44 |
|
| 45 |
def chat(x):
|
| 46 |
result = gradio_client.predict(
|