m-ric HF staff commited on
Commit
f212a29
β€’
1 Parent(s): 88614e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- </body>
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