Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
# 分词器
|