Spaces:
Runtime error
Runtime error
Refactor app.py to include lazy loading for images
Browse files
app.py
CHANGED
@@ -149,12 +149,14 @@ def init_detailed_results():
|
|
149 |
""")
|
150 |
|
151 |
|
152 |
-
HEAD = "
|
153 |
[
|
154 |
f'<link rel="stylesheet" href="{css}">' for css in CSS_EXTERNAL
|
155 |
]
|
156 |
)
|
157 |
|
|
|
|
|
158 |
demo = gr.Blocks(css=custom_css, head = HEAD)
|
159 |
with demo:
|
160 |
gr.HTML(TITLE)
|
|
|
149 |
""")
|
150 |
|
151 |
|
152 |
+
HEAD = "".join(
|
153 |
[
|
154 |
f'<link rel="stylesheet" href="{css}">' for css in CSS_EXTERNAL
|
155 |
]
|
156 |
)
|
157 |
|
158 |
+
print("HEAD:", HEAD)
|
159 |
+
|
160 |
demo = gr.Blocks(css=custom_css, head = HEAD)
|
161 |
with demo:
|
162 |
gr.HTML(TITLE)
|