Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,15 +92,15 @@ def generate_images(input_image):
|
|
| 92 |
return [f.result() for f in futures if f.result()]
|
| 93 |
|
| 94 |
# Gradio UI setup with custom styling
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
}
|
| 105 |
#gallery .gallery-item {
|
| 106 |
border-radius: 12px;
|
|
@@ -155,6 +155,7 @@ def generate_images(input_image):
|
|
| 155 |
)
|
| 156 |
return demo
|
| 157 |
|
| 158 |
-
# Launch the app
|
| 159 |
-
|
| 160 |
-
demo_app
|
|
|
|
|
|
| 92 |
return [f.result() for f in futures if f.result()]
|
| 93 |
|
| 94 |
# Gradio UI setup with custom styling
|
| 95 |
+
def build_interface():
|
| 96 |
+
custom_css = """
|
| 97 |
+
#generate-button {
|
| 98 |
+
background-color: #4A90E2;
|
| 99 |
+
color: white;
|
| 100 |
+
border-radius: 8px;
|
| 101 |
+
padding: 12px 24px;
|
| 102 |
+
font-size: 16px;
|
| 103 |
+
margin-top: 10px;
|
| 104 |
}
|
| 105 |
#gallery .gallery-item {
|
| 106 |
border-radius: 12px;
|
|
|
|
| 155 |
)
|
| 156 |
return demo
|
| 157 |
|
| 158 |
+
# Launch the app
|
| 159 |
+
if __name__ == "__main__":
|
| 160 |
+
demo_app = build_interface()
|
| 161 |
+
demo_app.launch()
|