Update app.py
Browse files
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
|
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()
|