Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def apply_filter(filter_type, input_image=None):
|
|
| 68 |
return apply_sepia_filter(frame)
|
| 69 |
elif filter_type == "Sonbahar":
|
| 70 |
return apply_fall_filter(frame)
|
| 71 |
-
elif filter_type == "
|
| 72 |
return apply_porcelain_splatter_effect(frame)
|
| 73 |
elif filter_type == "Picasso":
|
| 74 |
return split_and_shuffle_image(frame)
|
|
@@ -141,11 +141,12 @@ def split_and_shuffle_image(image):
|
|
| 141 |
# Gradio arayüzü
|
| 142 |
with gr.Blocks() as demo:
|
| 143 |
gr.Markdown("# Image Proccessing Exercise 01 - Tech Istanbul")
|
|
|
|
| 144 |
|
| 145 |
# Filtre seçenekleri
|
| 146 |
filter_type = gr.Dropdown(
|
| 147 |
label="Filtre Seçin",
|
| 148 |
-
choices=["Picasso","Gaussian Blur", "Sharpen", "Edge Detection", "Invert", "Brightness", "Grayscale", "Sepia", "Sonbahar"
|
| 149 |
value="Picasso"
|
| 150 |
)
|
| 151 |
|
|
|
|
| 68 |
return apply_sepia_filter(frame)
|
| 69 |
elif filter_type == "Sonbahar":
|
| 70 |
return apply_fall_filter(frame)
|
| 71 |
+
elif filter_type == "Random Colorful Dots":
|
| 72 |
return apply_porcelain_splatter_effect(frame)
|
| 73 |
elif filter_type == "Picasso":
|
| 74 |
return split_and_shuffle_image(frame)
|
|
|
|
| 141 |
# Gradio arayüzü
|
| 142 |
with gr.Blocks() as demo:
|
| 143 |
gr.Markdown("# Image Proccessing Exercise 01 - Tech Istanbul")
|
| 144 |
+
gr.Markdown("# I would like to thank to Murat hoca & Tech Istanbul for teaching us image processing ")
|
| 145 |
|
| 146 |
# Filtre seçenekleri
|
| 147 |
filter_type = gr.Dropdown(
|
| 148 |
label="Filtre Seçin",
|
| 149 |
+
choices=["Picasso","Random Colorful Dots","Gaussian Blur", "Sharpen", "Edge Detection", "Invert", "Brightness", "Grayscale", "Sepia", "Sonbahar"],
|
| 150 |
value="Picasso"
|
| 151 |
)
|
| 152 |
|