SAVAI123 commited on
Commit
7b51a84
·
verified ·
1 Parent(s): 1d02c98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -23
app.py CHANGED
@@ -189,16 +189,7 @@ def main():
189
  margin-bottom: 20px;
190
  }
191
 
192
- .logo-container {
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, elem_classes="logo-container"):
227
- # Check if the file exists before trying to display it
228
- if os.path.exists(logo_path):
229
- gr.Image(value=logo_path, show_label=False, elem_classes="logo-image")
230
- else:
231
- # Fallback to text + styling that mimics the logo
232
- gr.HTML("""
233
- <div style="text-align:center; color:white; background-color:black; padding:20px;">
234
- <div style="color:#FF0000; font-size:24px;">■■■■</div>
235
- <div style="font-size:28px; letter-spacing:5px; margin-top:10px;">EQUINIX</div>
236
- </div>
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