Update app.py
Browse files
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 =====
|
91 |
theme = gr.themes.Default(
|
92 |
-
primary_hue="
|
93 |
-
secondary_hue="
|
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 =====
|
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
|