freemt commited on
Commit
bace2bf
·
1 Parent(s): a7ce794
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,10 +43,10 @@ def fn(text1: str, text2: str) -> Union[List[Any], str]:
43
  return str(e)
44
  # raise
45
 
46
- res1 = res.copy()
47
- res.round(1, out=res1)
48
 
49
- return res1
50
  # return pd.DataFrame(res)
51
  # return str(res.tolist())
52
 
 
43
  return str(e)
44
  # raise
45
 
46
+ squarer = lambda x: round(x, 2)
47
+ vfunc = np.vectorize(round2)
48
 
49
+ return vfunc(res)
50
  # return pd.DataFrame(res)
51
  # return str(res.tolist())
52