Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -141,6 +141,7 @@ STYLE = """
|
|
141 |
align-items: center;
|
142 |
justify-content: space-between;
|
143 |
overflow: hidden;
|
|
|
144 |
}
|
145 |
.box span {
|
146 |
padding: 5px;
|
@@ -238,7 +239,7 @@ def generate_nodes(node, step):
|
|
238 |
def generate_html(start_sentence, original_tree):
|
239 |
html_output = f"""<div class="custom-container">
|
240 |
<div class="tree">
|
241 |
-
<div class="box"
|
242 |
html_output += "<ul> "
|
243 |
for subnode in original_tree.children.values():
|
244 |
html_output += generate_nodes(subnode, step=1)
|
|
|
141 |
align-items: center;
|
142 |
justify-content: space-between;
|
143 |
overflow: hidden;
|
144 |
+
cursor: pointer;
|
145 |
}
|
146 |
.box span {
|
147 |
padding: 5px;
|
|
|
239 |
def generate_html(start_sentence, original_tree):
|
240 |
html_output = f"""<div class="custom-container">
|
241 |
<div class="tree">
|
242 |
+
<div class="box" id='root'> <span> <b>{start_sentence}</b> </span> {original_tree.table} </div>"""
|
243 |
html_output += "<ul> "
|
244 |
for subnode in original_tree.children.values():
|
245 |
html_output += generate_nodes(subnode, step=1)
|