T.Masuda commited on
Commit
b0116b7
·
1 Parent(s): 76b601f

update app.py

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +1 -0
  3. requirements.txt +1 -0
README.md CHANGED
@@ -7,7 +7,7 @@ sdk: gradio
7
  sdk_version: 3.43.2
8
  app_file: app.py
9
  pinned: false
10
- license: mit
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  sdk_version: 3.43.2
8
  app_file: app.py
9
  pinned: false
10
+ license: openrail
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -17,6 +17,7 @@ def convertColor(image, color):
17
  def process_image(image):
18
  if image is None:
19
  yield [None, None, None]
 
20
 
21
  model = pipeline("image-segmentation")
22
  scores = model(image)
 
17
  def process_image(image):
18
  if image is None:
19
  yield [None, None, None]
20
+ return
21
 
22
  model = pipeline("image-segmentation")
23
  scores = model(image)
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  torch
2
  torchvision
3
  torchaudio
 
1
+ gradio
2
  torch
3
  torchvision
4
  torchaudio