Update app.py
Browse files
app.py
CHANGED
@@ -83,6 +83,7 @@ def render_table(forms, lemmas, upos, xpos, feats, named_entities):
|
|
83 |
["*UFEATS:*"] + list(feats[0]),
|
84 |
*([""] + list(row) for row in feats[1:]),
|
85 |
["*NE:*"] + named_entities_converted,
|
|
|
86 |
]
|
87 |
|
88 |
return {"data": array[1:], "headers": array[0]}
|
@@ -117,9 +118,9 @@ with gr.Blocks(theme='sudeepshouche/minimalist', css=custom_css) as demo:
|
|
117 |
)
|
118 |
|
119 |
with gr.Column(scale=1, variant="panel"):
|
120 |
-
gr.Label("", show_label=False, container=False)
|
121 |
-
table = gr.DataFrame([[""
|
122 |
-
dependency_plot = gr.Plot(
|
123 |
|
124 |
source.submit(
|
125 |
fn=parse, inputs=[source], outputs=[dependency_plot, table], queue=True
|
|
|
83 |
["*UFEATS:*"] + list(feats[0]),
|
84 |
*([""] + list(row) for row in feats[1:]),
|
85 |
["*NE:*"] + named_entities_converted,
|
86 |
+
['' for _ in range(len(forms) + 1)]
|
87 |
]
|
88 |
|
89 |
return {"data": array[1:], "headers": array[0]}
|
|
|
118 |
)
|
119 |
|
120 |
with gr.Column(scale=1, variant="panel"):
|
121 |
+
#gr.Label("", show_label=False, container=False)
|
122 |
+
table = gr.DataFrame([[""] * 32 for _ in range(8)], headers=[""] * 32, interactive=False, datatype="markdown")
|
123 |
+
dependency_plot = gr.Plot(None, container=False)
|
124 |
|
125 |
source.submit(
|
126 |
fn=parse, inputs=[source], outputs=[dependency_plot, table], queue=True
|