Update app.py
Browse files
app.py
CHANGED
@@ -92,6 +92,15 @@ css = """
|
|
92 |
margin-left: auto;
|
93 |
margin-right: auto;
|
94 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
"""
|
96 |
|
97 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
@@ -116,11 +125,12 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
116 |
# method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
117 |
|
118 |
with gr.Row():
|
119 |
-
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
|
|
120 |
with gr.Row():
|
121 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
122 |
with gr.Row():
|
123 |
-
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True,
|
124 |
|
125 |
gr.Markdown(article_text)
|
126 |
|
|
|
92 |
margin-left: auto;
|
93 |
margin-right: auto;
|
94 |
}
|
95 |
+
.generate-btn {
|
96 |
+
background: linear-gradient(90deg, #4B79A1 0%, #283E51 100%) !important;
|
97 |
+
border: none !important;
|
98 |
+
color: white !important;
|
99 |
+
}
|
100 |
+
.generate-btn:hover {
|
101 |
+
transform: translateY(-2px);
|
102 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
103 |
+
}
|
104 |
"""
|
105 |
|
106 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
|
125 |
# method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
126 |
|
127 |
with gr.Row():
|
128 |
+
# text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
129 |
+
text_button = gr.Button("✨ Generate Image", variant='primary', elem_id="gen-button")
|
130 |
with gr.Row():
|
131 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
132 |
with gr.Row():
|
133 |
+
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_classes=["generate-btn"])
|
134 |
|
135 |
gr.Markdown(article_text)
|
136 |
|