Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
dc8fe56
1
Parent(s):
bddf5c1
app.py
CHANGED
|
@@ -51,7 +51,8 @@ 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(res)
|
| 56 |
# return str(res.tolist())
|
| 57 |
|
|
@@ -84,9 +85,9 @@ try:
|
|
| 84 |
Dies ist ein Test
|
| 85 |
"""),
|
| 86 |
],
|
| 87 |
-
|
| 88 |
# out_text,
|
| 89 |
-
"html",
|
| 90 |
title="gradio-cmat",
|
| 91 |
theme="grass",
|
| 92 |
allow_flagging="never",
|
|
|
|
| 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 |
|
|
|
|
| 85 |
Dies ist ein Test
|
| 86 |
"""),
|
| 87 |
],
|
| 88 |
+
out_df,
|
| 89 |
# out_text,
|
| 90 |
+
# "html",
|
| 91 |
title="gradio-cmat",
|
| 92 |
theme="grass",
|
| 93 |
allow_flagging="never",
|