Spaces:
Runtime error
Runtime error
TomokiFujihara
commited on
Commit
β’
1272055
1
Parent(s):
f655ad7
Update app.py
Browse files
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):
|