Spaces:
Runtime error
Runtime error
Commit
·
0e52996
1
Parent(s):
bd294cd
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,6 @@ The current model achieves an accuracy of 90% on out-of-distribution evaluation.
|
|
39 |
Use the next page to check if your test-items (i.e. adjective, noun and hypernyms) were part of the training data!"""
|
40 |
|
41 |
examples = [["A red car is a vehicle"], ["A fake smile is a smile"], ["A small cat is a small animal"]]
|
42 |
-
examples_w = [["red,car,vehicle"], ["fake,smile"], ["small,cat,animal"]]
|
43 |
|
44 |
|
45 |
interface_words = gr.Interface(
|
@@ -49,6 +48,14 @@ interface_words = gr.Interface(
|
|
49 |
examples=examples_w,
|
50 |
)
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
interface_model = gr.Interface.load(
|
53 |
"huggingface/lorenzoscottb/bert-base-cased-PLANE-ood-2",
|
54 |
description=description,
|
|
|
39 |
Use the next page to check if your test-items (i.e. adjective, noun and hypernyms) were part of the training data!"""
|
40 |
|
41 |
examples = [["A red car is a vehicle"], ["A fake smile is a smile"], ["A small cat is a small animal"]]
|
|
|
42 |
|
43 |
|
44 |
interface_words = gr.Interface(
|
|
|
48 |
examples=examples_w,
|
49 |
)
|
50 |
|
51 |
+
|
52 |
+
|
53 |
+
description_e = """
|
54 |
+
You can use this page to test if a set of words was included in the training data used to tune the model. As in the samples below, use as input a series of words separated solely by a comma (e.g. *red,car,vehicle*).
|
55 |
+
"""
|
56 |
+
|
57 |
+
examples_w = [["red,car,vehicle"], ["fake,smile"], ["small,cat,animal"]]
|
58 |
+
|
59 |
interface_model = gr.Interface.load(
|
60 |
"huggingface/lorenzoscottb/bert-base-cased-PLANE-ood-2",
|
61 |
description=description,
|