baixintech_zhangyiming_prod commited on
Commit
ad6f6d7
1 Parent(s): 7dd7207

replace cuda with cpu

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ model, transforms = get_watermarks_detection_model(
9
  fp16=False,
10
  cache_dir='model_files'
11
  )
12
- predictor = WatermarksPredictor(model, transforms, 'cuda:0')
13
 
14
 
15
  def predict(image):
 
9
  fp16=False,
10
  cache_dir='model_files'
11
  )
12
+ predictor = WatermarksPredictor(model, transforms, 'cpu')
13
 
14
 
15
  def predict(image):