zhouxiaoxi commited on
Commit
0bd42e9
·
verified ·
1 Parent(s): ae067e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,8 @@ import torch
3
  import torch.nn as nn
4
  from transformers import BertTokenizer, BertModel
5
 
6
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
7
  names = ['负向', '正向']
8
 
9
  # 分词器
 
3
  import torch.nn as nn
4
  from transformers import BertTokenizer, BertModel
5
 
6
+ # device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
7
+ device = "cpu"
8
  names = ['负向', '正向']
9
 
10
  # 分词器