snackshell commited on
Commit
3665d0a
·
verified ·
1 Parent(s): faa166e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -12
app.py CHANGED
@@ -87,22 +87,14 @@ def generate_image(prompt):
87
 
88
  return None, "⚠️ Failed after multiple attempts. Please try later."
89
 
90
- # ===== GRADIO THEME ===== (add this right before the interface section)
91
  theme = gr.themes.Default(
92
- primary_hue="green",
93
- secondary_hue="yellow",
94
- neutral_hue="red",
95
  font=[gr.themes.GoogleFont("Poppins"), "Arial", "sans-serif"]
96
- ).set(
97
- button_primary_background_fill="#078C03", # Ethiopian green
98
- button_primary_text_color="#FCDD09", # Ethiopian yellow
99
- button_secondary_background_fill="#DA1212", # Ethiopian red
100
- slider_color="#DA1212", # Red for sliders
101
- checkbox_label_background_fill="#FCDD09", # Yellow for checkboxes
102
- block_background_fill_dark="#1e1e2e" # Dark background
103
  )
104
 
105
- # ===== GRADIO INTERFACE ===== (keep your existing interface code)
106
  with gr.Blocks(theme=theme, title="SelamGPT Image Generator") as demo:
107
  gr.Markdown("""
108
  # 🎨 SelamGPT Image Generator
 
87
 
88
  return None, "⚠️ Failed after multiple attempts. Please try later."
89
 
90
+ # ===== GRADIO THEME =====
91
  theme = gr.themes.Default(
92
+ primary_hue="emerald",
93
+ secondary_hue="amber",
 
94
  font=[gr.themes.GoogleFont("Poppins"), "Arial", "sans-serif"]
 
 
 
 
 
 
 
95
  )
96
 
97
+ # ===== GRADIO INTERFACE =====
98
  with gr.Blocks(theme=theme, title="SelamGPT Image Generator") as demo:
99
  gr.Markdown("""
100
  # 🎨 SelamGPT Image Generator