Update app.py
Browse files
app.py
CHANGED
@@ -189,16 +189,7 @@ def main():
|
|
189 |
margin-bottom: 20px;
|
190 |
}
|
191 |
|
192 |
-
|
193 |
-
max-width: 300px;
|
194 |
-
margin: 0 auto;
|
195 |
-
padding: 10px;
|
196 |
-
}
|
197 |
-
|
198 |
-
.logo-image {
|
199 |
-
width: 100%;
|
200 |
-
height: auto;
|
201 |
-
}
|
202 |
|
203 |
/* Hide the download button for images */
|
204 |
#header-container .image-container .absolute {
|
@@ -223,19 +214,18 @@ def main():
|
|
223 |
with gr.Column(scale=1):
|
224 |
pass # Spacer
|
225 |
|
226 |
-
with gr.Column(scale=2
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
print(f"Warning: Logo file {logo_path} not found")
|
239 |
|
240 |
with gr.Column(scale=1):
|
241 |
pass # Spacer
|
|
|
189 |
margin-bottom: 20px;
|
190 |
}
|
191 |
|
192 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
/* Hide the download button for images */
|
195 |
#header-container .image-container .absolute {
|
|
|
214 |
with gr.Column(scale=1):
|
215 |
pass # Spacer
|
216 |
|
217 |
+
with gr.Column(scale=2):
|
218 |
+
# Option 1: Using gr.Image with interactive=False
|
219 |
+
if os.path.exists(logo_path):
|
220 |
+
gr.Image(value=logo_path, show_label=False, interactive=False, show_download_button=False)
|
221 |
+
else:
|
222 |
+
# Fallback to HTML method
|
223 |
+
gr.HTML("""
|
224 |
+
<div style="text-align:center; color:white; background-color:black; padding:20px;">
|
225 |
+
<div style="color:#FF0000; font-size:24px;">■■■■</div>
|
226 |
+
<div style="font-size:28px; letter-spacing:5px; margin-top:10px;">EQUINIX</div>
|
227 |
+
</div>
|
228 |
+
""")
|
|
|
229 |
|
230 |
with gr.Column(scale=1):
|
231 |
pass # Spacer
|