Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,6 +52,18 @@ css="""
|
|
52 |
display:flex;
|
53 |
flex-direction:column;
|
54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
"""
|
56 |
def load_json(url1="",url2="",url3="",url4=""):
|
57 |
get_url=f'{main_directory}{url1}{url2}{url3}{url4}'
|
@@ -159,10 +171,10 @@ def make_html(inp_files):
|
|
159 |
return html_out
|
160 |
|
161 |
def make_nasa_soho():
|
162 |
-
html_out=f"<style>{css}</style><div class='
|
163 |
for ea in nasa_soho_images:
|
164 |
file_name=ea['source']
|
165 |
-
html_out+=f'<div class="
|
166 |
html_out+='</div>'
|
167 |
return html_out
|
168 |
|
|
|
52 |
display:flex;
|
53 |
flex-direction:column;
|
54 |
}
|
55 |
+
.img_box_soho{
|
56 |
+
display: flex;
|
57 |
+
flex-direction: row;
|
58 |
+
flex-wrap: wrap;
|
59 |
+
}
|
60 |
+
.img_class_soho{
|
61 |
+
background: #ffffff;
|
62 |
+
font-family: monospace;
|
63 |
+
border-top: #9300ff;
|
64 |
+
border-style: inset;
|
65 |
+
margin-top: 5px;
|
66 |
+
}
|
67 |
"""
|
68 |
def load_json(url1="",url2="",url3="",url4=""):
|
69 |
get_url=f'{main_directory}{url1}{url2}{url3}{url4}'
|
|
|
171 |
return html_out
|
172 |
|
173 |
def make_nasa_soho():
|
174 |
+
html_out=f"<style>{css}</style><div class='img_box_soho'>"
|
175 |
for ea in nasa_soho_images:
|
176 |
file_name=ea['source']
|
177 |
+
html_out+=f'<div class="img_class_soho"><img src="file={file_name}"></div>'
|
178 |
html_out+='</div>'
|
179 |
return html_out
|
180 |
|