Spaces:
Runtime error
Runtime error
Jeffrey Rathgeber Jr
commited on
test
Browse files
app.py
CHANGED
@@ -87,6 +87,8 @@ if option == 'MILESTONE 3':
|
|
87 |
HTCET = [0]*10
|
88 |
SET = [0]*10
|
89 |
|
|
|
|
|
90 |
pred_data = []
|
91 |
|
92 |
for i in range(10):
|
@@ -100,7 +102,7 @@ if option == 'MILESTONE 3':
|
|
100 |
labels = [model.config.id2label[label_id] for label_id in labels.tolist()]
|
101 |
pred_data.append(predictions)
|
102 |
|
103 |
-
|
104 |
|
105 |
df = df.assign(Tweet=pre_populated_tweets)
|
106 |
df = df.assign(Highest_Toxicity_Class_Overall=HTCO)
|
|
|
87 |
HTCET = [0]*10
|
88 |
SET = [0]*10
|
89 |
|
90 |
+
|
91 |
+
|
92 |
pred_data = []
|
93 |
|
94 |
for i in range(10):
|
|
|
102 |
labels = [model.config.id2label[label_id] for label_id in labels.tolist()]
|
103 |
pred_data.append(predictions)
|
104 |
|
105 |
+
st.write(pred_data[0]['label'])
|
106 |
|
107 |
df = df.assign(Tweet=pre_populated_tweets)
|
108 |
df = df.assign(Highest_Toxicity_Class_Overall=HTCO)
|