tkkkkk commited on
Commit
a396e9b
·
verified ·
1 Parent(s): 1ea2bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def load_model():
18
 
19
  # 如果有GPU,移动模型到GPU
20
  if torch.cuda.is_available():
21
- pipe = pipe.to("cuda")
22
 
23
  return pipe
24
  except Exception as e:
 
18
 
19
  # 如果有GPU,移动模型到GPU
20
  if torch.cuda.is_available():
21
+ pipe = pipe.to("cpu")
22
 
23
  return pipe
24
  except Exception as e: