Update README.md
Browse files
README.md
CHANGED
|
@@ -12,9 +12,9 @@ language:
|
|
| 12 |
style="width: 100%; max-width: 100%; height: auto; display: inline-block; margin-bottom: 0.5em; margin-top: 0.5em; border-radius: 10px;"
|
| 13 |
/>
|
| 14 |
<div style="display: flex; justify-content: center; gap: 0.5em; margin-bottom: 1em;">
|
| 15 |
-
<a href="https://
|
| 16 |
-
<a href="https://
|
| 17 |
-
<a href="https://
|
| 18 |
</div>
|
| 19 |
</div>
|
| 20 |
|
|
@@ -62,7 +62,7 @@ model.load_state_dict(torch.load("./module_profanity/models/char_cnn_model.pth",
|
|
| 62 |
model.eval()
|
| 63 |
|
| 64 |
# Predict
|
| 65 |
-
text = "κ²μ
|
| 66 |
encoded = tokenizer.encode(text)
|
| 67 |
input_tensor = torch.tensor([encoded]).to(device)
|
| 68 |
|
|
@@ -99,7 +99,7 @@ model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
|
| 99 |
model.eval()
|
| 100 |
|
| 101 |
# Predict
|
| 102 |
-
text = "
|
| 103 |
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
|
| 104 |
|
| 105 |
with torch.no_grad():
|
|
|
|
| 12 |
style="width: 100%; max-width: 100%; height: auto; display: inline-block; margin-bottom: 0.5em; margin-top: 0.5em; border-radius: 10px;"
|
| 13 |
/>
|
| 14 |
<div style="display: flex; justify-content: center; gap: 0.5em; margin-bottom: 1em;">
|
| 15 |
+
<a href="https://junsuai.kr/app"><strong>JunsuAI Platforms</strong></a> β’
|
| 16 |
+
<a href="https://flowstar.kr/"><strong>FLOWLABS</strong></a> β’
|
| 17 |
+
<a href="https://junsuai.kr/newswire"><strong>PRESS</strong></a>
|
| 18 |
</div>
|
| 19 |
</div>
|
| 20 |
|
|
|
|
| 62 |
model.eval()
|
| 63 |
|
| 64 |
# Predict
|
| 65 |
+
text = "κ²μ μ°Έ μ’κ°μ΄λ νμλ€μ"
|
| 66 |
encoded = tokenizer.encode(text)
|
| 67 |
input_tensor = torch.tensor([encoded]).to(device)
|
| 68 |
|
|
|
|
| 99 |
model.eval()
|
| 100 |
|
| 101 |
# Predict
|
| 102 |
+
text = "κΈμ μ°Έ κ°κ°μ΄λ μμ°μλ€μ γ
γ
" # Toxic tone without explicit swear words
|
| 103 |
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
|
| 104 |
|
| 105 |
with torch.no_grad():
|