Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def find_all(url):
|
|
49 |
q=("a","p","span","content","article")
|
50 |
for p in soup.find_all(q):
|
51 |
out.append([{q:p.string,"parent":p.parent.name,"previous":[p.previous],"first-child":[b.name for b in p.children],"content":p}])
|
52 |
-
print (f'OUT :: {out}')
|
53 |
'''
|
54 |
c=0
|
55 |
out = str(out)
|
@@ -236,7 +236,7 @@ def summarize(inp,history,data=None,file=None,url=None):
|
|
236 |
out = str(data)
|
237 |
rl = len(out)
|
238 |
print(f'rl:: {rl}')
|
239 |
-
c=
|
240 |
for i in str(out):
|
241 |
if i == " " or i=="," or i=="\n":
|
242 |
c +=1
|
|
|
49 |
q=("a","p","span","content","article")
|
50 |
for p in soup.find_all(q):
|
51 |
out.append([{q:p.string,"parent":p.parent.name,"previous":[p.previous],"first-child":[b.name for b in p.children],"content":p}])
|
52 |
+
#print (f'OUT :: {out}')
|
53 |
'''
|
54 |
c=0
|
55 |
out = str(out)
|
|
|
236 |
out = str(data)
|
237 |
rl = len(out)
|
238 |
print(f'rl:: {rl}')
|
239 |
+
c=1
|
240 |
for i in str(out):
|
241 |
if i == " " or i=="," or i=="\n":
|
242 |
c +=1
|