Omnibus commited on
Commit
fc0d126
1 Parent(s): d128919

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -65,18 +65,23 @@ def details_fn(query):
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'''
 
65
  out = f"""
66
  <center><h3>{title}</h3><br>{description}</center>"""
67
  try:
68
+ image_out="""
69
+ <style>
70
+ """
71
  images = soup.findAll('img')
72
  for img in images:
73
 
74
  image_out += f"""
75
+ <div class="container-mee">
76
+ <img src={img['src']}>
77
+ </div>
78
  """
79
  print (img['src'])
80
+ format_out = (f'<div class="grid-mee">{image_out}</div>')
81
  except Exeption as e:
82
+ format_out = "None"
83
  print (e)
84
+ return out,format_out
85
 
86
  def first():
87
  out = '''<h1>Loading'''