Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import torch
|
2 |
# from utils import label_full_decoder
|
3 |
-
import sys
|
4 |
# import dataset
|
5 |
# import engine
|
6 |
# from model import BERTBaseUncased
|
@@ -79,11 +79,17 @@ def sentence_prediction(sentence):
|
|
79 |
|
80 |
|
81 |
|
82 |
-
demo = gr.Interface(
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
# from utils import label_full_decoder
|
3 |
+
# import sys
|
4 |
# import dataset
|
5 |
# import engine
|
6 |
# from model import BERTBaseUncased
|
|
|
79 |
|
80 |
|
81 |
|
82 |
+
# demo = gr.Interface(
|
83 |
+
# fn=sentence_prediction,
|
84 |
+
# inputs=gr.Textbox(placeholder="Enter a sentence here..."),
|
85 |
+
# outputs="label",
|
86 |
+
# interpretation="default",
|
87 |
+
# examples=[["!"]])
|
88 |
+
|
89 |
+
# demo.launch()
|
90 |
+
|
91 |
+
gr.Interface(fn=sentence_prediction,inputs="text",outputs="label").launch()
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|