ErimTunaEsmer commited on
Commit
9ec42b3
·
verified ·
1 Parent(s): 0eaf075

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import cv2
2
+ import gradio as gr
3
+
4
+ def invert_colors(image):
5
+ # Invert the colors of the image
6
+ inverted_image = cv2.bitwise_not(image)
7
+ return inverted_image
8
+
9
+ iface = gr.Interface(
10
+ fn=invert_colors,
11
+ inputs=gr.Image(type="numpy", label="Yükleyeceğiniz Görsel"),
12
+ outputs=gr.Image(type="numpy", label="Renkleri Ters Çevrilmiş Görsel"),
13
+ title="Görsel Renklerini Ters Çevirme Aracı"
14
+ )
15
+
16
+ iface.launch()