marahmerah commited on
Commit
9608c70
·
verified ·
1 Parent(s): eac94ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -79,26 +79,38 @@ def query(prompt, is_negative=False, steps=35, cfg_scale=7, sampler="DPM++ 2M Ka
79
  print(f"Image processing error: {e}")
80
  raise gr.Error(f"Image processing failed: {str(e)}")
81
 
82
- # Improved CSS
83
  css = """
84
  #app-container {
85
  max-width: 800px;
86
  margin: 0 auto;
87
  padding: 20px;
 
88
  }
89
  #prompt-text-input, #negative-prompt-text-input {
90
  font-size: 14px;
 
91
  }
92
  #gallery {
93
  min-height: 512px;
94
- background: #f5f5f5;
 
95
  }
96
  #gen-button {
97
  margin: 10px 0;
 
 
 
 
 
 
 
 
 
98
  }
99
  """
100
 
101
- with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
102
  gr.HTML("<center><h1>FLUX.1-Dev (PNG Output)</h1></center>")
103
 
104
  with gr.Column(elem_id="app-container"):
 
79
  print(f"Image processing error: {e}")
80
  raise gr.Error(f"Image processing failed: {str(e)}")
81
 
82
+ # Light theme CSS
83
  css = """
84
  #app-container {
85
  max-width: 800px;
86
  margin: 0 auto;
87
  padding: 20px;
88
+ background: #ffffff;
89
  }
90
  #prompt-text-input, #negative-prompt-text-input {
91
  font-size: 14px;
92
+ background: #f9f9f9;
93
  }
94
  #gallery {
95
  min-height: 512px;
96
+ background: #ffffff;
97
+ border: 1px solid #e0e0e0;
98
  }
99
  #gen-button {
100
  margin: 10px 0;
101
+ background: #4CAF50;
102
+ color: white;
103
+ }
104
+ .accordion {
105
+ background: #f5f5f5;
106
+ border: 1px solid #e0e0e0;
107
+ }
108
+ h1 {
109
+ color: #333333;
110
  }
111
  """
112
 
113
+ with gr.Blocks(theme=gr.themes.Default(primary_hue="green"), css=css) as app:
114
  gr.HTML("<center><h1>FLUX.1-Dev (PNG Output)</h1></center>")
115
 
116
  with gr.Column(elem_id="app-container"):