Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,6 @@ group_dict = {
|
|
37 |
28: 'Small-scale farmers',
|
38 |
29: 'Other'}
|
39 |
|
40 |
-
def predict(text):
|
41 |
-
preds = model([text])[0].item()
|
42 |
-
return group_dict[preds]
|
43 |
-
|
44 |
# App
|
45 |
st.title("Identify references to vulnerable groups.")
|
46 |
st.write("This app allows you to identify whether a text contains any references to vulnerable groups. This can, for example, be used to analyse policy documents.")
|
|
|
37 |
28: 'Small-scale farmers',
|
38 |
29: 'Other'}
|
39 |
|
|
|
|
|
|
|
|
|
40 |
# App
|
41 |
st.title("Identify references to vulnerable groups.")
|
42 |
st.write("This app allows you to identify whether a text contains any references to vulnerable groups. This can, for example, be used to analyse policy documents.")
|