Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
3006a36
1
Parent(s):
7a34e63
app.py
CHANGED
@@ -13,7 +13,7 @@ from set_loglevel import set_loglevel
|
|
13 |
from gradio_cmat.gradio_cmat import gradio_cmat
|
14 |
|
15 |
|
16 |
-
pd.set_option("display.precision", 3)
|
17 |
|
18 |
pd.options.display.float_format = "{:,.2f}".format
|
19 |
# pd.set_option('display.float_format', '{:,.0f}'.format)
|
@@ -51,11 +51,16 @@ def fn(text1: str, text2: str) -> Union[List[Any], str]:
|
|
51 |
round2 = lambda x: round(x, 2)
|
52 |
vfunc = np.vectorize(round2)
|
53 |
|
|
|
|
|
|
|
|
|
54 |
# return pd.DataFrame(vfunc(res), dtype="object").to_html()
|
55 |
-
return pd.DataFrame(vfunc(res), dtype="object")
|
56 |
# return pd.DataFrame(res)
|
57 |
# return str(res.tolist())
|
58 |
|
|
|
|
|
59 |
|
60 |
out_df = gr.outputs.Dataframe(
|
61 |
# headers=None,
|
|
|
13 |
from gradio_cmat.gradio_cmat import gradio_cmat
|
14 |
|
15 |
|
16 |
+
# pd.set_option("display.precision", 3)
|
17 |
|
18 |
pd.options.display.float_format = "{:,.2f}".format
|
19 |
# pd.set_option('display.float_format', '{:,.0f}'.format)
|
|
|
51 |
round2 = lambda x: round(x, 2)
|
52 |
vfunc = np.vectorize(round2)
|
53 |
|
54 |
+
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()
|
|
|
59 |
# return pd.DataFrame(res)
|
60 |
# return str(res.tolist())
|
61 |
|
62 |
+
return _
|
63 |
+
|
64 |
|
65 |
out_df = gr.outputs.Dataframe(
|
66 |
# headers=None,
|