Fhad17 commited on
Commit
ddc9405
·
verified ·
1 Parent(s): a1ac2b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,5 +14,5 @@ def get_sentiment(input_text):
14
  interface = gr.Interface(fn = get_sentiment, inputs=gr.Textbox(label = "Enter the review :"), outputs = [gr.Textbox(label = "Sentiment :"), gr.Textbox(label = "Score :")], title = "Sentiment analysis protoype")
15
  #launch of the interface
16
 
17
- if name == "main":
18
  interface.launch()
 
14
  interface = gr.Interface(fn = get_sentiment, inputs=gr.Textbox(label = "Enter the review :"), outputs = [gr.Textbox(label = "Sentiment :"), gr.Textbox(label = "Score :")], title = "Sentiment analysis protoype")
15
  #launch of the interface
16
 
17
+ if __name__ == "__main__":
18
  interface.launch()