lorenzoscottb commited on
Commit
2242573
·
1 Parent(s): 933a0c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,12 +14,12 @@ Nns = set(list(data["Nn"]) + list(data["Hypr"]))
14
  all_set = set(list(adjs) + list(Nns))
15
 
16
  def test_input(words):
17
- word_dict = {}
18
  for w in words.split(","):
19
  if w in all_set:
20
- word_dict[w] = "in-distribution"
21
  else:
22
- word_dict[w] = "out-distribution"
23
  return word_dict
24
 
25
 
 
14
  all_set = set(list(adjs) + list(Nns))
15
 
16
  def test_input(words):
17
+ word_dict = ""
18
  for w in words.split(","):
19
  if w in all_set:
20
+ word_dict += "{} : in-distribution\n".format(w)
21
  else:
22
+ word_dict[w] = "{} : out-of-distribution\n".format(w)
23
  return word_dict
24
 
25