Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,13 +112,20 @@ def generate(prompt, negative, resolution, steps):
|
|
| 112 |
custom_css = """
|
| 113 |
#container { max-width: 1000px; margin: auto; }
|
| 114 |
.generate-btn { background: linear-gradient(90deg, #2ecc71, #27ae60) !important; color: white !important; }
|
| 115 |
-
.status-box {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
"""
|
| 117 |
|
| 118 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="gray"), css=custom_css) as demo:
|
| 119 |
with gr.Column(elem_id="container"):
|
| 120 |
-
gr.Markdown("# 👾 Creeper AI")
|
| 121 |
-
gr.Markdown("
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
with gr.Column(scale=1):
|
|
@@ -133,20 +140,20 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="gray"),
|
|
| 133 |
placeholder="Things to avoid..."
|
| 134 |
)
|
| 135 |
|
| 136 |
-
with gr.Accordion("Settings ⚙️", open=
|
| 137 |
resolution = gr.Radio(
|
| 138 |
[512, 768, 1024],
|
| 139 |
value=512,
|
| 140 |
-
label="Resolution
|
| 141 |
)
|
| 142 |
steps = gr.Slider(
|
| 143 |
-
|
| 144 |
-
value=
|
| 145 |
step=1,
|
| 146 |
label="Inference Steps"
|
| 147 |
)
|
| 148 |
|
| 149 |
-
eta = gr.Markdown("⏱️ **Estimate**: ~
|
| 150 |
generate_btn = gr.Button("🚀 Generate Image", variant="primary", elem_classes="generate-btn")
|
| 151 |
|
| 152 |
with gr.Column(scale=1):
|
|
|
|
| 112 |
custom_css = """
|
| 113 |
#container { max-width: 1000px; margin: auto; }
|
| 114 |
.generate-btn { background: linear-gradient(90deg, #2ecc71, #27ae60) !important; color: white !important; }
|
| 115 |
+
.status-box {
|
| 116 |
+
font-size: 1.1em;
|
| 117 |
+
padding: 10px;
|
| 118 |
+
border-radius: 8px;
|
| 119 |
+
background: #f0f2f5;
|
| 120 |
+
color: black !important;
|
| 121 |
+
}
|
| 122 |
+
.status-box p, .status-box span { color: black !important; }
|
| 123 |
"""
|
| 124 |
|
| 125 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="gray"), css=custom_css) as demo:
|
| 126 |
with gr.Column(elem_id="container"):
|
| 127 |
+
gr.Markdown("# 👾 Creeper AI - v3.2")
|
| 128 |
+
gr.Markdown("Generate images using Creeper AI, running on CPU using fast models.")
|
| 129 |
|
| 130 |
with gr.Row():
|
| 131 |
with gr.Column(scale=1):
|
|
|
|
| 140 |
placeholder="Things to avoid..."
|
| 141 |
)
|
| 142 |
|
| 143 |
+
with gr.Accordion("Settings ⚙️", open=True):
|
| 144 |
resolution = gr.Radio(
|
| 145 |
[512, 768, 1024],
|
| 146 |
value=512,
|
| 147 |
+
label="Resolution"
|
| 148 |
)
|
| 149 |
steps = gr.Slider(
|
| 150 |
+
6, 10,
|
| 151 |
+
value=8,
|
| 152 |
step=1,
|
| 153 |
label="Inference Steps"
|
| 154 |
)
|
| 155 |
|
| 156 |
+
eta = gr.Markdown("⏱️ **Estimate**: ~2m 10s")
|
| 157 |
generate_btn = gr.Button("🚀 Generate Image", variant="primary", elem_classes="generate-btn")
|
| 158 |
|
| 159 |
with gr.Column(scale=1):
|