Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,9 @@ async def send_html_chunks(websocket, soup):
|
|
56 |
|
57 |
tags = soup.find_all(True)
|
58 |
|
59 |
-
for tag in
|
60 |
-
|
|
|
61 |
await websocket.send(json.dumps({"type": "chunk", "content": tag_content}))
|
62 |
|
63 |
await websocket.send(json.dumps({"type": "end",}))
|
|
|
56 |
|
57 |
tags = soup.find_all(True)
|
58 |
|
59 |
+
tags = [str(tag) for tag in soup.find_all(True)]
|
60 |
+
|
61 |
+
for tag_content in tags:
|
62 |
await websocket.send(json.dumps({"type": "chunk", "content": tag_content}))
|
63 |
|
64 |
await websocket.send(json.dumps({"type": "end",}))
|