ndahlbom commited on
Commit
3038f8e
·
verified ·
1 Parent(s): d69618f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -88,16 +88,16 @@ winter_theme = gr.themes.Soft(
88
  button_primary_text_color="#000000",
89
  )
90
 
91
- # --- UPDATED CSS ---
92
- # Changed logic: Apply background to 'body' and force '.gradio-container' to be transparent
93
  custom_css = """
94
- /* 1. APPLY BACKGROUND TO BODY directly to ensure it loads behind everything */
95
  body {
96
- background: url('https://images.unsplash.com/photo-1477601263568-180e2c6d046e?q=80&w=2560&auto=format&fit=crop') no-repeat center center fixed !important;
97
  background-size: cover !important;
98
  }
99
 
100
- /* 2. Make the Gradio Container TRANSPARENT so body shows through */
101
  .gradio-container {
102
  background: transparent !important;
103
  background-color: transparent !important;
 
88
  button_primary_text_color="#000000",
89
  )
90
 
91
+ # --- UPDATED CSS FOR LOCAL IMAGE ---
92
+ # We use the filename directly since it's in the same folder as app.py
93
  custom_css = """
94
+ /* 1. APPLY LOCAL BACKGROUND TO BODY */
95
  body {
96
+ background: url('Cute-Christmas-Background-edit-online-1.jpg') no-repeat center center fixed !important;
97
  background-size: cover !important;
98
  }
99
 
100
+ /* 2. Make the Gradio Container TRANSPARENT */
101
  .gradio-container {
102
  background: transparent !important;
103
  background-color: transparent !important;