Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def analyze_sentence(index, vis_type, vis_format):
|
|
53 |
"offset_x": 20,
|
54 |
"distance": 130
|
55 |
})
|
56 |
-
graph_output = ("<div class='displacy_container' style='max-width:100%;
|
57 |
+ graph_output +
|
58 |
"</div>"
|
59 |
)
|
@@ -64,7 +64,7 @@ def analyze_sentence(index, vis_type, vis_format):
|
|
64 |
return fig_output, graph_output, metrics
|
65 |
|
66 |
|
67 |
-
demo = gr.Blocks(css=".displacy_container svg{margin-top:-500px;}")
|
68 |
with demo:
|
69 |
with gr.Row():
|
70 |
sentence_dropdown = gr.Dropdown(label="Sentence",
|
|
|
53 |
"offset_x": 20,
|
54 |
"distance": 130
|
55 |
})
|
56 |
+
graph_output = ("<div class='displacy_container' style='max-width:100%; max-height:500px; overflow:auto'>"
|
57 |
+ graph_output +
|
58 |
"</div>"
|
59 |
)
|
|
|
64 |
return fig_output, graph_output, metrics
|
65 |
|
66 |
|
67 |
+
demo = gr.Blocks(css=".displacy_container svg{margin-top:-500px;transform:scale(0.5)}")
|
68 |
with demo:
|
69 |
with gr.Row():
|
70 |
sentence_dropdown = gr.Dropdown(label="Sentence",
|