File size: 444 Bytes
9ec42b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()