rohankaran commited on
Commit
ce9e876
1 Parent(s): 1bf4e6c

Update image source URLs in app.py

Browse files

The image source URLs previously pointing to local files have been updated to use absolute URLs. This change includes URLs for the hf-logo and lighthouzai-logo in our application code. This change ensures the images can load correctly even if the local file path changes or is unavailable.

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -204,12 +204,12 @@ with gr.Blocks(
204
  background-color: #4b5563 !important;
205
  }
206
  .dark #hf-logo {
207
- background-image: url("https://arena.lighthouz.ai/file/static/hf-logo-with-white-title.png") !important;
208
  }
209
  #hf-logo {
210
  width: 140px;
211
  height: 33px;
212
- background-image: url("https://arena.lighthouz.ai/file/static/hf-logo-with-title.png");
213
  background-size: cover; /* Adjust as needed */
214
  background-position: center;
215
  }
@@ -231,7 +231,7 @@ with gr.Blocks(
231
  """
232
  <div style="display: flex; align-items: center; margin-bottom: -1rem;">
233
  <a href="https://lighthouz.ai" target="_blank" rel="noopener noreferrer">
234
- <img style="width: 100px; margin-right: 10px;" src="https://arena.lighthouz.ai/file/static/lighthouzai-logo-full.png">
235
  </a>
236
  <div style="width: 1.5px; background-color: #777; height: 100%; margin-right: 10px; height: 32px"></div>
237
  <a href="https://huggingface.co" target="_blank" rel="noopener noreferrer">
 
204
  background-color: #4b5563 !important;
205
  }
206
  .dark #hf-logo {
207
+ background-image: url("https://lighthouzai-guardrails-arena.hf.space/file/static/hf-logo-with-white-title.png") !important;
208
  }
209
  #hf-logo {
210
  width: 140px;
211
  height: 33px;
212
+ background-image: url("https://lighthouzai-guardrails-arena.hf.space/file/static/hf-logo-with-title.png");
213
  background-size: cover; /* Adjust as needed */
214
  background-position: center;
215
  }
 
231
  """
232
  <div style="display: flex; align-items: center; margin-bottom: -1rem;">
233
  <a href="https://lighthouz.ai" target="_blank" rel="noopener noreferrer">
234
+ <img style="width: 100px; margin-right: 10px;" src="https://lighthouzai-guardrails-arena.hf.space/file/static/lighthouzai-logo-full.png">
235
  </a>
236
  <div style="width: 1.5px; background-color: #777; height: 100%; margin-right: 10px; height: 32px"></div>
237
  <a href="https://huggingface.co" target="_blank" rel="noopener noreferrer">