lampongyuen commited on
Commit
937b95c
·
1 Parent(s): eab34ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -2,10 +2,9 @@ import gradio
2
  import cv2
3
 
4
 
5
- def inference(img, in_bright, in_contrast):
6
  new_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
7
  in_bright=1
8
- in_contrast=50
9
  return new_img
10
 
11
  # For information on Interfaces, head to https://gradio.app/docs/
@@ -13,7 +12,7 @@ def inference(img, in_bright, in_contrast):
13
  # For Spaces usage, head to https://huggingface.co/docs/hub/spaces
14
  iface = gradio.Interface(
15
  fn=inference,
16
- inputs=['image',gradio.Slider(0,100),gradio.Slider(0,100)],
17
  outputs='image',
18
  title='Change Image',
19
  description='Interface!',
 
2
  import cv2
3
 
4
 
5
+ def inference(img, in_bright):
6
  new_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
7
  in_bright=1
 
8
  return new_img
9
 
10
  # For information on Interfaces, head to https://gradio.app/docs/
 
12
  # For Spaces usage, head to https://huggingface.co/docs/hub/spaces
13
  iface = gradio.Interface(
14
  fn=inference,
15
+ inputs=['image',gradio.Slider(0,100)],
16
  outputs='image',
17
  title='Change Image',
18
  description='Interface!',