import cv2 | |
import gradio as gr | |
def invert_colors(image): | |
# Invert the colors of the image | |
inverted_image = cv2.bitwise_not(image) | |
return inverted_image | |
iface = gr.Interface( | |
fn=invert_colors, | |
inputs=gr.Image(type="numpy", label="Yükleyeceğiniz Görsel"), | |
outputs=gr.Image(type="numpy", label="Renkleri Ters Çevrilmiş Görsel"), | |
title="Görsel Renklerini Ters Çevirme Aracı" | |
) | |
iface.launch() | |