Kims12 commited on
Commit
e3680c4
1 Parent(s): 4801435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -2,6 +2,11 @@ import gradio as gr
2
  import cv2
3
  import numpy as np
4
 
 
 
 
 
 
5
  def apply_filter(image, filter_type):
6
  if filter_type == "Soft Glow":
7
  # Soft Glow 효과
 
2
  import cv2
3
  import numpy as np
4
 
5
+ def convert_to_grayscale(image):
6
+ # 이미지를 흑백으로 변환
7
+ gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
8
+ return gray_image
9
+
10
  def apply_filter(image, filter_type):
11
  if filter_type == "Soft Glow":
12
  # Soft Glow 효과