Spaces:
Runtime error
Runtime error
Victoria Slocum
commited on
Commit
·
54f5089
1
Parent(s):
7b72036
fix again again
Browse files
app.py
CHANGED
@@ -39,7 +39,6 @@ def dependency(text, col_punct, col_phrase, compact, bg, font, model):
|
|
39 |
"collapse_punct": col_punct, "bg": bg, "color": font}
|
40 |
html = '<div class="frame" style="overflow-x: auto; min-width:101%;">'
|
41 |
html = html + displacy.render(doc, style="dep", options=options) + '</div>'
|
42 |
-
print(html)
|
43 |
return html
|
44 |
|
45 |
|
@@ -147,11 +146,13 @@ demo = gr.Blocks(css="scrollbar.css")
|
|
147 |
with demo:
|
148 |
with gr.Box():
|
149 |
|
150 |
-
with gr.
|
151 |
-
gr.
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
|
|
155 |
with gr.Box():
|
156 |
with gr.Column():
|
157 |
with gr.Row():
|
|
|
39 |
"collapse_punct": col_punct, "bg": bg, "color": font}
|
40 |
html = '<div class="frame" style="overflow-x: auto; min-width:101%;">'
|
41 |
html = html + displacy.render(doc, style="dep", options=options) + '</div>'
|
|
|
42 |
return html
|
43 |
|
44 |
|
|
|
146 |
with demo:
|
147 |
with gr.Box():
|
148 |
|
149 |
+
with gr.Row():
|
150 |
+
with gr.Column():
|
151 |
+
gr.Markdown("# Pipeline Visualizer")
|
152 |
+
gr.Markdown(
|
153 |
+
"### Visualize parts of the spaCy pipeline in an interactive demo.")
|
154 |
+
with gr.Column():
|
155 |
+
gr.Image("pipeline.svg")
|
156 |
with gr.Box():
|
157 |
with gr.Column():
|
158 |
with gr.Row():
|