Omnibus commited on
Commit
1cb17a2
·
verified ·
1 Parent(s): 121c044

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -34,9 +34,24 @@ def make_tree(url1="",url2="",url3="",url4=""):
34
  return gr.update(choices=[l for l in link_box],interactive=True)
35
  else:
36
  return None
37
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  def get_images():
39
- html_out="<style>.img_class{background:blue;}</style><div style='column-count:2;'>"
40
  get_url=f'{main_directory}images/'
41
 
42
  feed1 = requests.get(get_url)
 
34
  return gr.update(choices=[l for l in link_box],interactive=True)
35
  else:
36
  return None
37
+ css="""
38
+ .img_box{
39
+ display: flex;
40
+ flex-direction: column;
41
+ flex-wrap: wrap;
42
+ height: 20000px;
43
+ }
44
+ .img_class{
45
+ background: #ffffff;
46
+ max-width: 48%;
47
+ font-family: monospace;
48
+ border-top: #9300ff;
49
+ border-style: inset;
50
+ margin-top: 5px;
51
+ }
52
+ """
53
  def get_images():
54
+ html_out=f"<style>{css}</style><div class='img_box'>"
55
  get_url=f'{main_directory}images/'
56
 
57
  feed1 = requests.get(get_url)