xichen98cn commited on
Commit
87414d9
1 Parent(s): 8baf88c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  import sys
3
- import spaces
4
  os.system("pip install imutils")
5
  os.system("python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'")
6
  os.system("python frozenseg/modeling/pixel_decoder/ops/setup.py build install")
@@ -125,7 +125,7 @@ def build_demo_classes_and_metadata(vocab, label_list):
125
  demo_classes = demo_thing_classes + demo_stuff_classes
126
  return demo_classes, demo_metadata
127
 
128
- @spaces.GPU(duration=120)
129
  def inference(image_path, vocab, label_list):
130
  logger.info("building class names")
131
  vocab = vocab.replace(", ", ",").replace("; ", ";")
 
1
  import os
2
  import sys
3
+
4
  os.system("pip install imutils")
5
  os.system("python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'")
6
  os.system("python frozenseg/modeling/pixel_decoder/ops/setup.py build install")
 
125
  demo_classes = demo_thing_classes + demo_stuff_classes
126
  return demo_classes, demo_metadata
127
 
128
+
129
  def inference(image_path, vocab, label_list):
130
  logger.info("building class names")
131
  vocab = vocab.replace(", ", ",").replace("; ", ";")