thak123 commited on
Commit
d481ecd
·
1 Parent(s): 8d56da2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -74,15 +74,13 @@ def sentence_prediction(sentence):
74
  print(outputs)
75
  return outputs #{"label":outputs[0]}
76
 
77
- if __name__ == "__main__":
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(debug = True,
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()