Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ if USE_GPU and torch.cuda.is_available():
|
|
11 |
else:
|
12 |
device = torch.device('cpu')
|
13 |
|
14 |
-
MODEL_NAME_CHINESE = "IDEA-CCNL/Erlangshen-DeBERTa-v2-186M-Chinese-SentencePiece"
|
15 |
-
|
16 |
|
17 |
|
18 |
WORD_PROBABILITY_THRESHOLD = 0.02
|
|
|
11 |
else:
|
12 |
device = torch.device('cpu')
|
13 |
|
14 |
+
#MODEL_NAME_CHINESE = "IDEA-CCNL/Erlangshen-DeBERTa-v2-186M-Chinese-SentencePiece"
|
15 |
+
MODEL_NAME_CHINESE = "IDEA-CCNL/Erlangshen-DeBERTa-v2-97M-CWS-Chinese"
|
16 |
|
17 |
|
18 |
WORD_PROBABILITY_THRESHOLD = 0.02
|