Spaces:
Sleeping
Sleeping
changed model
Browse files
app.py
CHANGED
@@ -11,7 +11,9 @@ 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 |
WORD_PROBABILITY_THRESHOLD = 0.02
|
17 |
TOP_K_WORDS = 10
|
|
|
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
|
19 |
TOP_K_WORDS = 10
|