lorenzoscottb commited on
Commit
4aac2a1
·
1 Parent(s): 5462d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -33,9 +33,9 @@ Please note that the scope of the model is not to run lexical entailment or hype
33
 
34
  - An *Adjective-Noun* is a *Hypernym(Noun)* (e.g. A red car is a vehicle)
35
 
36
- - An *Adjective-Noun* is a *Adjective-Hypernym(Noun)* (e.g. A red car is a vehicle)
37
 
38
- Please note that, as in the examples above, the adjective should be the same for both phrases, and that the Hypernym(Noun) shoul be a true hypernym of the selected noun
39
 
40
  The current model achieves an accuracy of 90% on out-of-distribution evaluation.
41
  Use the next page to check if your test-items (i.e. adjective, noun and hypernyms) were part of the training data!"""
@@ -50,7 +50,6 @@ interface_words = gr.Interface(
50
  outputs=gr.outputs.Label(label="In training-distribution?"),
51
  examples=examples_w,
52
  )
53
- # interface_words.launch()
54
 
55
  interface_model = gr.Interface.load(
56
  "huggingface/lorenzoscottb/bert-base-cased-PLANE-ood-2",
@@ -58,8 +57,6 @@ interface_model = gr.Interface.load(
58
  examples=examples,
59
  title=title,
60
  )
61
- # interface_model.launch()
62
-
63
 
64
  gr.TabbedInterface(
65
  [interface_model, interface_words], ["Test Model", "Check if words in/out-distribution"]
 
33
 
34
  - An *Adjective-Noun* is a *Hypernym(Noun)* (e.g. A red car is a vehicle)
35
 
36
+ - An *Adjective-Noun* is a *Adjective-Hypernym(Noun)* (e.g. A red car is a red vehicle)
37
 
38
+ Please note that, as in the examples above, the adjective should be the same for both phrases, and that the Hypernym(Noun) should be a true hypernym of the selected noun.
39
 
40
  The current model achieves an accuracy of 90% on out-of-distribution evaluation.
41
  Use the next page to check if your test-items (i.e. adjective, noun and hypernyms) were part of the training data!"""
 
50
  outputs=gr.outputs.Label(label="In training-distribution?"),
51
  examples=examples_w,
52
  )
 
53
 
54
  interface_model = gr.Interface.load(
55
  "huggingface/lorenzoscottb/bert-base-cased-PLANE-ood-2",
 
57
  examples=examples,
58
  title=title,
59
  )
 
 
60
 
61
  gr.TabbedInterface(
62
  [interface_model, interface_words], ["Test Model", "Check if words in/out-distribution"]