Omnibus commited on
Commit
dbc3d8f
·
1 Parent(s): 4cde5ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=0
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