othamoth commited on
Commit
d0ffad9
Β·
verified Β·
1 Parent(s): 98ab284

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
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://playground.liquid.ai/"><strong>Try LFM</strong></a> β€’
16
- <a href="https://docs.liquid.ai/lfm"><strong>Documentation</strong></a> β€’
17
- <a href="https://leap.liquid.ai/"><strong>LEAP</strong></a>
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 = "λ§ν•˜λŠ” 꼬라지 ν•˜κ³ λŠ” γ…‹γ…‹" # Toxic tone without explicit swear words
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():