Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
d1f1969
1
Parent(s):
282cd32
app.py
CHANGED
@@ -52,7 +52,7 @@ def fn(text1: str, text2: str) -> Union[List[Any], str]:
|
|
52 |
vfunc = np.vectorize(round2)
|
53 |
|
54 |
df = pd.DataFrame(res)
|
55 |
-
_ = df.style.background_gradient()
|
56 |
|
57 |
# return pd.DataFrame(vfunc(res), dtype="object")
|
58 |
# return pd.DataFrame(vfunc(res), dtype="object").to_html()
|
|
|
52 |
vfunc = np.vectorize(round2)
|
53 |
|
54 |
df = pd.DataFrame(res)
|
55 |
+
_ = df.style.background_gradient().set_precision(2)
|
56 |
|
57 |
# return pd.DataFrame(vfunc(res), dtype="object")
|
58 |
# return pd.DataFrame(vfunc(res), dtype="object").to_html()
|