Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,10 @@ def get_sentiment(input_text):
|
|
| 8 |
|
| 9 |
if __name__ == "__main__":
|
| 10 |
iface = gr.Interface(
|
|
|
|
| 11 |
inputs = "text",
|
| 12 |
outputs = ['text'],
|
| 13 |
title = 'Sentiment Analysis',
|
| 14 |
-
description = 'Get Sentiment Negative/positive for the given input'
|
| 15 |
)
|
| 16 |
iface.launch(inline = False)
|
|
|
|
| 8 |
|
| 9 |
if __name__ == "__main__":
|
| 10 |
iface = gr.Interface(
|
| 11 |
+
fn = get_sentiment,
|
| 12 |
inputs = "text",
|
| 13 |
outputs = ['text'],
|
| 14 |
title = 'Sentiment Analysis',
|
| 15 |
+
description = 'Get Sentiment Negative/positive for the given input'
|
| 16 |
)
|
| 17 |
iface.launch(inline = False)
|