Omnibus commited on
Commit
1bfef18
·
1 Parent(s): 8243b25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -66,17 +66,25 @@ def details_fn(query):
66
  <center><h3>{title}</h3><br>{description}</center>"""
67
  try:
68
  image_out="""
 
 
 
 
 
 
 
 
69
  """
70
  images = soup.findAll('img')
71
  for img in images:
72
 
73
  image_out += f"""
74
- <div>
75
  <img src={img['src']}>
76
  </div>
77
  """
78
  print (img['src'])
79
- format_out = f"""<div>{image_out}</div>"""
80
  except Exeption as e:
81
  format_out = "None"
82
  print (e)
 
66
  <center><h3>{title}</h3><br>{description}</center>"""
67
  try:
68
  image_out="""
69
+ <style>
70
+ .im_container{
71
+ background:'white';
72
+ }
73
+ .im_each{
74
+ background:'blue';
75
+ }
76
+ </style>
77
  """
78
  images = soup.findAll('img')
79
  for img in images:
80
 
81
  image_out += f"""
82
+ <div class='im_each'>
83
  <img src={img['src']}>
84
  </div>
85
  """
86
  print (img['src'])
87
+ format_out = f"""<div class='im_container'>{image_out}</div>"""
88
  except Exeption as e:
89
  format_out = "None"
90
  print (e)