rmayormartins commited on
Commit
9558232
1 Parent(s): 3e3d8ee

arrumado descricao gradio

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -6,7 +6,6 @@ import nltk
6
  from nltk.sentiment import SentimentIntensityAnalyzer
7
  from afinn import Afinn
8
 
9
-
10
  #VADER e AFINN
11
  nltk.download('vader_lexicon')
12
  vader = SentimentIntensityAnalyzer()
@@ -102,6 +101,12 @@ def analyze_text(text):
102
  return results
103
 
104
 
105
- #Gradio
106
- iface = gr.Interface(fn=analyze_text, inputs="text", outputs="json")
 
 
 
 
 
 
107
  iface.launch(debug=True)
 
6
  from nltk.sentiment import SentimentIntensityAnalyzer
7
  from afinn import Afinn
8
 
 
9
  #VADER e AFINN
10
  nltk.download('vader_lexicon')
11
  vader = SentimentIntensityAnalyzer()
 
101
  return results
102
 
103
 
104
+ # Gradio Interface
105
+ iface = gr.Interface(
106
+ fn=analyze_text,
107
+ inputs="text",
108
+ outputs="json",
109
+ title="Sentiment-Analysis-Committee",
110
+ description="Enter a text. And the Democratic committee among Sentiment Analysis methods will conduct the vote."
111
+ )
112
  iface.launch(debug=True)