Spaces:
Runtime error
Runtime error
Update pages/toxicapp.py
Browse files- pages/toxicapp.py +1 -1
pages/toxicapp.py
CHANGED
@@ -17,7 +17,7 @@ model = AutoModelForSequenceClassification.from_pretrained('cointegrated/rubert-
|
|
17 |
model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')), strict=False)
|
18 |
image = Image.open("media/oritoxic.jpg")
|
19 |
|
20 |
-
|
21 |
loss_values = [0.4063596375772262, 0.402279906166038, 0.3998144585561736, 0.39567733055365567,
|
22 |
0.3921396666608141, 0.38956182373070186, 0.3866641920902114, 0.3879134839351564,
|
23 |
0.38288725781591604, 0.38198364493999004]
|
|
|
17 |
model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')), strict=False)
|
18 |
image = Image.open("media/oritoxic.jpg")
|
19 |
|
20 |
+
df = pd.read_csv("media/Toxic_labeled.csv")
|
21 |
loss_values = [0.4063596375772262, 0.402279906166038, 0.3998144585561736, 0.39567733055365567,
|
22 |
0.3921396666608141, 0.38956182373070186, 0.3866641920902114, 0.3879134839351564,
|
23 |
0.38288725781591604, 0.38198364493999004]
|