Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Escape HTML tags in data
Browse files- src/details.py +1 -1
- src/results.py +1 -1
src/details.py
CHANGED
|
@@ -71,7 +71,7 @@ def display_details(sample_idx, *dfs):
|
|
| 71 |
df = df.apply(lambda x: x.str.wrap(140) if x.dtype == "object" else x)
|
| 72 |
return (
|
| 73 |
df.style
|
| 74 |
-
.format(na_rep="")
|
| 75 |
# .hide(axis="index")
|
| 76 |
.to_html()
|
| 77 |
)
|
|
|
|
| 71 |
df = df.apply(lambda x: x.str.wrap(140) if x.dtype == "object" else x)
|
| 72 |
return (
|
| 73 |
df.style
|
| 74 |
+
.format(escape="html", na_rep="")
|
| 75 |
# .hide(axis="index")
|
| 76 |
.to_html()
|
| 77 |
)
|
src/results.py
CHANGED
|
@@ -59,7 +59,7 @@ def display_results(task, *dfs):
|
|
| 59 |
|
| 60 |
|
| 61 |
def display_tab(tab, df, task):
|
| 62 |
-
df = df.style.format(na_rep="")
|
| 63 |
df.hide(
|
| 64 |
[
|
| 65 |
row
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
def display_tab(tab, df, task):
|
| 62 |
+
df = df.style.format(escape="html", na_rep="")
|
| 63 |
df.hide(
|
| 64 |
[
|
| 65 |
row
|