Ramesh-vani commited on
Commit
554f2f4
·
verified ·
1 Parent(s): 90322fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -570,8 +570,7 @@ async def handle_user_input(websocket,key, process, connected,process_ids):
570
  # Step 3: Replace the existing body content with the new content from souptmp
571
  if soup.body:
572
  soup.body.clear()
573
- for content in souptmp.body.contents:
574
- soup.body.append(content)
575
  else:
576
  print("No <body> tag found in the HTML")
577
 
@@ -962,8 +961,7 @@ async def exe(websocket,connected,key,process_ids):
962
  # Step 3: Replace the existing body content with the new content from souptmp
963
  if soup.body:
964
  soup.body.clear()
965
- for content in souptmp.body.contents:
966
- soup.body.append(content)
967
  else:
968
  print("No <body> tag found in the HTML")
969
 
 
570
  # Step 3: Replace the existing body content with the new content from souptmp
571
  if soup.body:
572
  soup.body.clear()
573
+ soup.body.append(souptmp)
 
574
  else:
575
  print("No <body> tag found in the HTML")
576
 
 
961
  # Step 3: Replace the existing body content with the new content from souptmp
962
  if soup.body:
963
  soup.body.clear()
964
+ soup.body.append(souptmp)
 
965
  else:
966
  print("No <body> tag found in the HTML")
967