davda54
commited on
Commit
·
7f3219f
1
Parent(s):
0e59e1d
fix
Browse files
app.py
CHANGED
@@ -86,15 +86,15 @@ def render_table(forms, lemmas, upos, xpos, feats, metadata, edges, edge_labels)
|
|
86 |
feats = list(zip(*feats))
|
87 |
|
88 |
array = [
|
89 |
-
["<b>forms</b
|
90 |
-
["<b>lemmas</b
|
91 |
-
["<b>upos</b
|
92 |
-
["<b>xpos</b
|
93 |
-
["<b>feats</b
|
94 |
*([""] + list(row) for row in feats[1:])
|
95 |
]
|
96 |
|
97 |
-
return tabulate.tabulate(array, tablefmt="
|
98 |
|
99 |
|
100 |
with gr.Blocks(theme='sudeepshouche/minimalist') as demo:
|
|
|
86 |
feats = list(zip(*feats))
|
87 |
|
88 |
array = [
|
89 |
+
["<b>forms</b> "] + forms,
|
90 |
+
["<b>lemmas</b>   "] + lemmas,
|
91 |
+
["<b>upos</b> "] + upos,
|
92 |
+
["<b>xpos</b> "] + xpos,
|
93 |
+
["<b>feats</b> "] + list(feats[0]),
|
94 |
*([""] + list(row) for row in feats[1:])
|
95 |
]
|
96 |
|
97 |
+
return tabulate.tabulate(array, headers="firstrow", tablefmt="unsafehtml")
|
98 |
|
99 |
|
100 |
with gr.Blocks(theme='sudeepshouche/minimalist') as demo:
|