Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from textblob import TextBlob
|
|
|
|
| 3 |
|
|
|
|
|
|
|
| 4 |
def sentiment_analysis(text: str) -> dict:
|
| 5 |
"""
|
| 6 |
Analyze the sentiment of the given text.
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from textblob import TextBlob
|
| 3 |
+
import nltk
|
| 4 |
|
| 5 |
+
|
| 6 |
+
nltk.download('punkt')
|
| 7 |
def sentiment_analysis(text: str) -> dict:
|
| 8 |
"""
|
| 9 |
Analyze the sentiment of the given text.
|