thak123 commited on
Commit
272a9cc
1 Parent(s): 19254fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -9
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
- fn=sentence_prediction,
84
- inputs=gr.Textbox(placeholder="Enter a sentence here..."),
85
- outputs="label",
86
- interpretation="default",
87
- examples=[["!"]])
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
+