Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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()
|