nickkun's picture
Created App with Gaussian Blur Features
606bdc0 verified
raw
history blame
722 Bytes
import gradio as gr
def process_image(image):
# Perform segmentation and apply Gaussian blur (steps above)
# Return output images for display
segmented_output = ... # Segmented output with blurred background
depth_map_output = ... # Depth map visualization
variable_blur_output = ... # Variable Gaussian blur
return segmented_output, depth_map_output, variable_blur_output
app = gr.Interface(
fn=process_image,
inputs=gr.Image(type="pil"),
outputs=[gr.Image(type="pil"), gr.Image(type="pil"), gr.Image(type="pil")],
title="Vision Transformer Segmentation & Depth Estimation",
description="Upload an image to apply segmentation and lens blur effects."
)
app.launch()