OzlemAkgunoglu
commited on
Commit
•
8ffd198
1
Parent(s):
756f1a7
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,19 @@ def apply_filters(image, filter_type, brightness, contrast, sharpening):
|
|
85 |
return image
|
86 |
|
87 |
# Define Interface
|
88 |
-
with gr.Blocks(css="""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
# Title and Description
|
90 |
gr.Markdown("<h1 style='text-align: center; font-family: Arial, sans-serif; color: #333;'>Dynamic Photo Filter App</h1>")
|
91 |
gr.Markdown("<p style='text-align: center; color: #666;'>Apply professional photo filters with adjustable brightness, contrast, and sharpness. Perfect your images instantly!</p>")
|
|
|
85 |
return image
|
86 |
|
87 |
# Define Interface
|
88 |
+
with gr.Blocks(css="""
|
89 |
+
.gradio-container { background-color: #f7f7f7; text-align: center; }
|
90 |
+
#filter-dropdown, #brightness-slider, #contrast-slider, #sharpening-slider {
|
91 |
+
border: 1px solid #ddd;
|
92 |
+
border-radius: 8px;
|
93 |
+
padding: 8px;
|
94 |
+
color: #333;
|
95 |
+
margin: 5px auto; /* Center the sliders */
|
96 |
+
}
|
97 |
+
#image-input, #image-output {
|
98 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
99 |
+
border-radius: 8px;
|
100 |
+
margin: 5px auto; /* Center the images */ }""") as app:
|
101 |
# Title and Description
|
102 |
gr.Markdown("<h1 style='text-align: center; font-family: Arial, sans-serif; color: #333;'>Dynamic Photo Filter App</h1>")
|
103 |
gr.Markdown("<p style='text-align: center; color: #666;'>Apply professional photo filters with adjustable brightness, contrast, and sharpness. Perfect your images instantly!</p>")
|