Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ DEVICE = (
|
|
36 |
torch.device("mps") if torch.backends.mps.is_available() else torch.device("cuda")
|
37 |
)
|
38 |
|
39 |
-
BAD_WORD_KEYWORDS = ["(medium)"]
|
40 |
|
41 |
|
42 |
def get_bad_words_ids(tokenizer: PreTrainedTokenizerFast):
|
|
|
36 |
torch.device("mps") if torch.backends.mps.is_available() else torch.device("cuda")
|
37 |
)
|
38 |
|
39 |
+
BAD_WORD_KEYWORDS = ["(medium)", " text", "(style)"]
|
40 |
|
41 |
|
42 |
def get_bad_words_ids(tokenizer: PreTrainedTokenizerFast):
|