ldhldh commited on
Commit
4dd9267
Β·
1 Parent(s): 2e61957

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- result = sorted(result, key=lambda x : x['score'], reverse=True)
 
41
 
42
- return result
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(