wlchee commited on
Commit
3bb56cd
·
verified ·
1 Parent(s): be02936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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.