Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -238,15 +238,15 @@ def generate_nodes(node, step):
|
|
238 |
|
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)
|
246 |
html_output += "</ul>"
|
247 |
html_output += """
|
248 |
-
</div>
|
249 |
-
</
|
250 |
"""
|
251 |
return html_output
|
252 |
|
|
|
238 |
|
239 |
def generate_html(start_sentence, original_tree):
|
240 |
html_output = f"""<div class="custom-container">
|
241 |
+
<div class="tree"> <li>
|
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)
|
246 |
html_output += "</ul>"
|
247 |
html_output += """
|
248 |
+
</li></div>
|
249 |
+
</div>
|
250 |
"""
|
251 |
return html_output
|
252 |
|