Update app.py
Browse files
app.py
CHANGED
@@ -74,15 +74,13 @@ def sentence_prediction(sentence):
|
|
74 |
print(outputs)
|
75 |
return outputs #{"label":outputs[0]}
|
76 |
|
77 |
-
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
enable_queue=True,
|
88 |
-
show_error = True)
|
|
|
74 |
print(outputs)
|
75 |
return outputs #{"label":outputs[0]}
|
76 |
|
77 |
+
|
78 |
|
79 |
+
demo = gr.Interface(
|
80 |
+
fn=sentence_prediction,
|
81 |
+
inputs=gr.Textbox(placeholder="Enter a sentence here..."),
|
82 |
+
outputs="label",
|
83 |
+
interpretation="default",
|
84 |
+
examples=[["!"]])
|
85 |
+
|
86 |
+
demo.launch()
|
|
|
|