Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ group_dict = {
|
|
40 |
# Define prediction function
|
41 |
def predict(text):
|
42 |
preds = model([text])[0].item()
|
43 |
-
|
44 |
|
45 |
# App
|
46 |
st.title("Identify references to vulnerable groups.")
|
|
|
40 |
# Define prediction function
|
41 |
def predict(text):
|
42 |
preds = model([text])[0].item()
|
43 |
+
return group_dict[preds]
|
44 |
|
45 |
# App
|
46 |
st.title("Identify references to vulnerable groups.")
|