Omnibus commited on
Commit
d128919
·
1 Parent(s): 23fe586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -65,12 +65,18 @@ def details_fn(query):
65
  out = f"""
66
  <center><h3>{title}</h3><br>{description}</center>"""
67
  try:
68
- images = soup.findAll('img','src')
69
- print (images)
 
 
 
 
 
 
70
  except Exeption as e:
71
- images = "None"
72
  print (e)
73
- return out,images
74
 
75
  def first():
76
  out = '''<h1>Loading'''
 
65
  out = f"""
66
  <center><h3>{title}</h3><br>{description}</center>"""
67
  try:
68
+ image_out=""
69
+ images = soup.findAll('img')
70
+ for img in images:
71
+
72
+ image_out += f"""
73
+ <img src={img['src']}><br>
74
+ """
75
+ print (img['src'])
76
  except Exeption as e:
77
+ image_out = "None"
78
  print (e)
79
+ return out,image_out
80
 
81
  def first():
82
  out = '''<h1>Loading'''