ChristopherMarais commited on
Commit
2604860
·
verified ·
1 Parent(s): 31da73c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -244,11 +244,13 @@ custom_css = """
244
  }
245
  """
246
 
247
- with gr.Blocks(css=custom_css, theme=gr.themes.Default(primary_hue="sky")) as demo:
248
  # Insert custom CSS for layout:
249
  gr.HTML("""
250
  <script>
251
- document.documentElement.setAttribute('data-theme', 'light');
 
 
252
  </script>
253
  <style>
254
  :root {
 
244
  }
245
  """
246
 
247
+ with gr.Blocks(fill_width=True, css=custom_css, theme=gr.themes.Default(primary_hue="sky")) as demo:
248
  # Insert custom CSS for layout:
249
  gr.HTML("""
250
  <script>
251
+ window.addEventListener("load", () => {
252
+ document.documentElement.setAttribute("data-theme", "light");
253
+ });
254
  </script>
255
  <style>
256
  :root {