TomokiFujihara commited on
Commit
1272055
β€’
1 Parent(s): f655ad7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
 
7
  # γƒˆγƒΌγ‚―γƒŠγ‚€γ‚ΆγƒΌγ¨γƒ’γƒ‡γƒ«γ‚’γƒ­γƒΌγƒ‰γ™γ‚‹
8
  tokenizer = AutoTokenizer.from_pretrained("studio-ousia/luke-japanese-base-lite")
9
- model = AutoModelForSequenceClassification.from_pretrained("TomokiFujihara/luke-japanese-base-lite-offensiveness-estimation", trust_remote_code=True)
10
 
11
  # txtε…₯εŠ›γ‚’ε—γ‘ε–γ‚Šγ€γγ‚Œγ‚’δ½Ώη”¨γ—γ¦ζ–°γ—γ„txtγ‚’η”Ÿζˆγ™γ‚‹ι–’ζ•°
12
  def generate(text):
 
6
 
7
  # γƒˆγƒΌγ‚―γƒŠγ‚€γ‚ΆγƒΌγ¨γƒ’γƒ‡γƒ«γ‚’γƒ­γƒΌγƒ‰γ™γ‚‹
8
  tokenizer = AutoTokenizer.from_pretrained("studio-ousia/luke-japanese-base-lite")
9
+ model = AutoModelForSequenceClassification.from_pretrained("TomokiFujihara/luke-japanese-base-lite-offensiveness-estimation", trust_remote_code=True, use_auth_token='TOKEN_OFFENSIVENESS_ESTIMATION')
10
 
11
  # txtε…₯εŠ›γ‚’ε—γ‘ε–γ‚Šγ€γγ‚Œγ‚’δ½Ώη”¨γ—γ¦ζ–°γ—γ„txtγ‚’η”Ÿζˆγ™γ‚‹ι–’ζ•°
12
  def generate(text):