leavoigt commited on
Commit
5172fa7
1 Parent(s): c9e3328

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
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.")