Spaces:
Runtime error
Runtime error
Commit ·
fd5f563
1
Parent(s): 71fdb6a
updated image height
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def text_analysis(text):
|
|
| 22 |
doc = nlp(text)
|
| 23 |
dependency_parsing = render_dep_chart(doc)
|
| 24 |
visual1 = (
|
| 25 |
-
"<div style='
|
| 26 |
+ dependency_parsing
|
| 27 |
+ "</div>"
|
| 28 |
)
|
|
@@ -47,6 +47,12 @@ footer {display:none !important}
|
|
| 47 |
#zoomable{
|
| 48 |
cursor: pointer;
|
| 49 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
"""
|
| 51 |
|
| 52 |
with gr.Blocks(title="Analyze Text | Data Science Dojo", css = css) as demo:
|
|
|
|
| 22 |
doc = nlp(text)
|
| 23 |
dependency_parsing = render_dep_chart(doc)
|
| 24 |
visual1 = (
|
| 25 |
+
"<div style='overflow:auto'>"
|
| 26 |
+ dependency_parsing
|
| 27 |
+ "</div>"
|
| 28 |
)
|
|
|
|
| 47 |
#zoomable{
|
| 48 |
cursor: pointer;
|
| 49 |
}
|
| 50 |
+
|
| 51 |
+
#zoomable img{
|
| 52 |
+
height: 13em;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
|
| 56 |
"""
|
| 57 |
|
| 58 |
with gr.Blocks(title="Analyze Text | Data Science Dojo", css = css) as demo:
|