Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
9cb83a7
1
Parent(s):
3a92168
app.py
CHANGED
@@ -48,7 +48,7 @@ def fn(text1: str, text2: str) -> Union[List[Any], str]:
|
|
48 |
round2 = lambda x: round(x, 2)
|
49 |
vfunc = np.vectorize(round2)
|
50 |
|
51 |
-
return pd.DataFrame(vfunc(res), dtype="object")
|
52 |
# return pd.DataFrame(res)
|
53 |
# return str(res.tolist())
|
54 |
|
@@ -81,8 +81,9 @@ try:
|
|
81 |
Dies ist ein Test
|
82 |
"""),
|
83 |
],
|
84 |
-
out_df,
|
85 |
# out_text,
|
|
|
86 |
title="gradio-cmat",
|
87 |
theme="grass",
|
88 |
allow_flagging="never",
|
|
|
48 |
round2 = lambda x: round(x, 2)
|
49 |
vfunc = np.vectorize(round2)
|
50 |
|
51 |
+
return pd.DataFrame(vfunc(res), dtype="object").to_html()
|
52 |
# return pd.DataFrame(res)
|
53 |
# return str(res.tolist())
|
54 |
|
|
|
81 |
Dies ist ein Test
|
82 |
"""),
|
83 |
],
|
84 |
+
# out_df,
|
85 |
# out_text,
|
86 |
+
"html",
|
87 |
title="gradio-cmat",
|
88 |
theme="grass",
|
89 |
allow_flagging="never",
|