lampongyuen commited on
Commit
4124b4d
·
1 Parent(s): 3dc6831

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio
2
  import cv2
 
3
 
4
  #def inference(img, in_bright):
5
  # new_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
@@ -23,6 +24,7 @@ def greet(image, name, is_morning, temperature):
23
  greeting = f"{salutation} {name}. It is {temperature} degrees today"
24
  celsius = (temperature - 32) * 5 / 9
25
 
 
26
  # contrast [1.0-3.0]
27
  # brightness [0-100]
28
  # https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
 
1
  import gradio
2
  import cv2
3
+ import numpy as np
4
 
5
  #def inference(img, in_bright):
6
  # new_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
 
24
  greeting = f"{salutation} {name}. It is {temperature} degrees today"
25
  celsius = (temperature - 32) * 5 / 9
26
 
27
+ new_image = np.zeros(image.shape, image.dtype)
28
  # contrast [1.0-3.0]
29
  # brightness [0-100]
30
  # https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html