krogoldAI commited on
Commit
dc9cac1
·
verified ·
1 Parent(s): 67f04ce

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -257,6 +257,17 @@ button.sm.secondary.svelte-cmf5ev:hover {
257
  }
258
  """
259
 
 
 
 
 
 
 
 
 
 
 
 
260
  # To add the CélineGPT logo in the Gradio interface
261
  description_html = """
262
  <div class="logo-container">
@@ -337,6 +348,7 @@ demo = gr.ChatInterface(
337
  clear_btn="Réinitialiser la conversation",
338
  submit_btn="Envoyer",
339
  css=custom_css,
 
340
  )
341
 
342
  demo.queue()
 
257
  }
258
  """
259
 
260
+ # To avoid inconsistencies with dark mode
261
+ js = """
262
+ function setLightTheme() {
263
+ const url = new URL(window.location);
264
+ if (url.searchParams.get('__theme') !== 'light') {
265
+ url.searchParams.set('__theme', 'light');
266
+ window.location.href = url.href;
267
+ }
268
+ }
269
+ """
270
+
271
  # To add the CélineGPT logo in the Gradio interface
272
  description_html = """
273
  <div class="logo-container">
 
348
  clear_btn="Réinitialiser la conversation",
349
  submit_btn="Envoyer",
350
  css=custom_css,
351
+ js=js
352
  )
353
 
354
  demo.queue()