Helder Rodrigues
commited on
Commit
•
64d83f5
1
Parent(s):
043696a
demo
Browse files
app.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
|
6 |
def generate(text):
|
7 |
-
classifier = pipeline("sentiment-analysis")
|
8 |
result = classifier(text)
|
9 |
return result
|
10 |
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
classifier = pipeline("sentiment-analysis")
|
5 |
|
6 |
def generate(text):
|
|
|
7 |
result = classifier(text)
|
8 |
return result
|
9 |
|