Omnibus commited on
Commit
af5c7ef
1 Parent(s): e369512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -36,8 +36,8 @@ def run_dif(out_prompt):
36
  img_buffer = io.BytesIO(r.content)
37
  print (f'bytes:: {io.BytesIO(r.content)}')
38
  str_equivalent_image = base64.b64encode(img_buffer.getvalue()).decode()
39
- img_tag = "<img class='img_class' src='data:image/png;base64," + str_equivalent_image + "'/>"
40
- out_html+=f"<div><a href='https://huggingface.co/models/{models[i]}'>{models[i]}</a><br>"+img_tag+"</div>"
41
  out = Image.open(io.BytesIO(r.content))
42
  out_box.append(out)
43
  html_out = "<div class='grid_class'>"+out_html+"</div>"
@@ -50,9 +50,10 @@ def run_dif(out_prompt):
50
  css="""
51
  .grid_class{
52
  display:flex;
 
53
  }
54
  .img_class{
55
- min-width:100px;
56
  }
57
 
58
  """
 
36
  img_buffer = io.BytesIO(r.content)
37
  print (f'bytes:: {io.BytesIO(r.content)}')
38
  str_equivalent_image = base64.b64encode(img_buffer.getvalue()).decode()
39
+ img_tag = "<img src='data:image/png;base64," + str_equivalent_image + "'/>"
40
+ out_html+=f"<div class='img_class'><a href='https://huggingface.co/models/{models[i]}'>{models[i]}</a><br>"+img_tag+"</div>"
41
  out = Image.open(io.BytesIO(r.content))
42
  out_box.append(out)
43
  html_out = "<div class='grid_class'>"+out_html+"</div>"
 
50
  css="""
51
  .grid_class{
52
  display:flex;
53
+ height:100%;
54
  }
55
  .img_class{
56
+ min-width:200px;
57
  }
58
 
59
  """