Spaces:
Runtime error
Runtime error
Commit
·
78e02cf
1
Parent(s):
5d8b16a
Update app.py
Browse files
app.py
CHANGED
@@ -45,12 +45,12 @@ Coming soon: check if words were in training data!"""
|
|
45 |
examples = [["A red car is a vehicle"], ["A fake smile is a smile"], ["A small cat is a small animal"]]
|
46 |
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
#
|
51 |
-
#
|
52 |
-
#
|
53 |
-
|
54 |
# interface_model.launch()
|
55 |
|
56 |
interface_words = gr.Interface(
|
@@ -58,4 +58,12 @@ interface_words = gr.Interface(
|
|
58 |
inputs=gr.Textbox(label="Input:word_1,word2,...,word_n"),
|
59 |
outputs=gr.outputs.Label(label="**In training-distribution?**"),
|
60 |
)
|
61 |
-
interface_words.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
examples = [["A red car is a vehicle"], ["A fake smile is a smile"], ["A small cat is a small animal"]]
|
46 |
|
47 |
|
48 |
+
interface_model = gr.Interface.load(
|
49 |
+
"huggingface/lorenzoscottb/bert-base-cased-PLANE-ood-2",
|
50 |
+
# description=description,
|
51 |
+
# examples=examples,
|
52 |
+
# title=title,
|
53 |
+
)
|
54 |
# interface_model.launch()
|
55 |
|
56 |
interface_words = gr.Interface(
|
|
|
58 |
inputs=gr.Textbox(label="Input:word_1,word2,...,word_n"),
|
59 |
outputs=gr.outputs.Label(label="**In training-distribution?**"),
|
60 |
)
|
61 |
+
# interface_words.launch()
|
62 |
+
|
63 |
+
Series(
|
64 |
+
interface_words,
|
65 |
+
interface_model,
|
66 |
+
description=description,
|
67 |
+
examples=examples,
|
68 |
+
title=title,
|
69 |
+
).launch()
|