Spaces:
Runtime error
Runtime error
Victoria Slocum
commited on
Commit
·
d76ae5b
1
Parent(s):
54f5089
fix: scrollbar stuff
Browse files
app.py
CHANGED
@@ -37,8 +37,7 @@ def dependency(text, col_punct, col_phrase, compact, bg, font, model):
|
|
37 |
doc = nlp(text)
|
38 |
options = {"compact": compact, "collapse_phrases": col_phrase,
|
39 |
"collapse_punct": col_punct, "bg": bg, "color": font}
|
40 |
-
html =
|
41 |
-
html = html + displacy.render(doc, style="dep", options=options) + '</div>'
|
42 |
return html
|
43 |
|
44 |
|
@@ -203,6 +202,7 @@ with demo:
|
|
203 |
depen_output = gr.HTML(value=dependency(
|
204 |
DEFAULT_TEXT, True, True, False, DEFAULT_COLOR, "black", DEFAULT_MODEL))
|
205 |
dep_button = gr.Button("Generate Dependency Parser")
|
|
|
206 |
with gr.Box():
|
207 |
with gr.Column():
|
208 |
gr.Markdown(
|
|
|
37 |
doc = nlp(text)
|
38 |
options = {"compact": compact, "collapse_phrases": col_phrase,
|
39 |
"collapse_punct": col_punct, "bg": bg, "color": font}
|
40 |
+
html = displacy.render(doc, style="dep", options=options)
|
|
|
41 |
return html
|
42 |
|
43 |
|
|
|
202 |
depen_output = gr.HTML(value=dependency(
|
203 |
DEFAULT_TEXT, True, True, False, DEFAULT_COLOR, "black", DEFAULT_MODEL))
|
204 |
dep_button = gr.Button("Generate Dependency Parser")
|
205 |
+
gr.Markdown(" ")
|
206 |
with gr.Box():
|
207 |
with gr.Column():
|
208 |
gr.Markdown(
|