Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def generate(prompt, negative, resolution, steps):
|
|
| 74 |
|
| 75 |
yield (
|
| 76 |
None,
|
| 77 |
-
"
|
| 78 |
gr.update(interactive=False)
|
| 79 |
)
|
| 80 |
|
|
@@ -98,7 +98,7 @@ def generate(prompt, negative, resolution, steps):
|
|
| 98 |
blur = image.filter(ImageFilter.GaussianBlur(radius=blur_radius))
|
| 99 |
yield (
|
| 100 |
blur,
|
| 101 |
-
"
|
| 102 |
gr.update(interactive=False)
|
| 103 |
)
|
| 104 |
time.sleep(0.2)
|
|
@@ -119,13 +119,12 @@ custom_css = """
|
|
| 119 |
background: #ffffff !important;
|
| 120 |
border: 1px solid #ddd;
|
| 121 |
}
|
| 122 |
-
/* Force all possible text elements in the status box to be black */
|
| 123 |
.status-box * { color: black !important; }
|
| 124 |
"""
|
| 125 |
|
| 126 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="gray"), css=custom_css) as demo:
|
| 127 |
with gr.Column(elem_id="container"):
|
| 128 |
-
gr.Markdown("# 👾 Creeper AI - v3.
|
| 129 |
gr.Markdown("Generate images using Creeper AI, running on CPU using fast models.")
|
| 130 |
|
| 131 |
with gr.Row():
|
|
@@ -159,7 +158,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="gray"),
|
|
| 159 |
|
| 160 |
with gr.Column(scale=1):
|
| 161 |
output_img = gr.Image(label="Result", interactive=False)
|
| 162 |
-
status = gr.Markdown("Ready", elem_classes="status-box")
|
| 163 |
|
| 164 |
resolution.change(estimate_time, [steps, resolution], eta)
|
| 165 |
steps.change(estimate_time, [steps, resolution], eta)
|
|
|
|
| 74 |
|
| 75 |
yield (
|
| 76 |
None,
|
| 77 |
+
"🎨 Generating Image...",
|
| 78 |
gr.update(interactive=False)
|
| 79 |
)
|
| 80 |
|
|
|
|
| 98 |
blur = image.filter(ImageFilter.GaussianBlur(radius=blur_radius))
|
| 99 |
yield (
|
| 100 |
blur,
|
| 101 |
+
"🎨 Generating Image...",
|
| 102 |
gr.update(interactive=False)
|
| 103 |
)
|
| 104 |
time.sleep(0.2)
|
|
|
|
| 119 |
background: #ffffff !important;
|
| 120 |
border: 1px solid #ddd;
|
| 121 |
}
|
|
|
|
| 122 |
.status-box * { 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.3")
|
| 128 |
gr.Markdown("Generate images using Creeper AI, running on CPU using fast models.")
|
| 129 |
|
| 130 |
with gr.Row():
|
|
|
|
| 158 |
|
| 159 |
with gr.Column(scale=1):
|
| 160 |
output_img = gr.Image(label="Result", interactive=False)
|
| 161 |
+
status = gr.Markdown("🟢 Ready", elem_classes="status-box")
|
| 162 |
|
| 163 |
resolution.change(estimate_time, [steps, resolution], eta)
|
| 164 |
steps.change(estimate_time, [steps, resolution], eta)
|