Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ else:
|
|
15 |
|
16 |
tweets_raw = pd.read_csv("train.csv", nrows=20)
|
17 |
|
|
|
18 |
|
19 |
# Run encoding through model to get classification output.
|
20 |
encoding = tokenizer.encode(txt, return_tensors='pt')
|
|
|
15 |
|
16 |
tweets_raw = pd.read_csv("train.csv", nrows=20)
|
17 |
|
18 |
+
label_set = ["toxic", "severe_toxic", "obscene", "threat", "insult", "identity_hate"]
|
19 |
|
20 |
# Run encoding through model to get classification output.
|
21 |
encoding = tokenizer.encode(txt, return_tensors='pt')
|