Spaces:
Runtime error
Runtime error
ananthujay
commited on
Commit
·
43324c4
1
Parent(s):
00a39fe
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ nlp = pipeline("sentiment-analysis")
|
|
6 |
def scoring(text):
|
7 |
results = nlp(text)
|
8 |
sentiment = results[0]['label']
|
|
|
9 |
return sentiment
|
10 |
|
11 |
iface = gr.Interface(fn=scoring, inputs="text", outputs="text")
|
|
|
6 |
def scoring(text):
|
7 |
results = nlp(text)
|
8 |
sentiment = results[0]['label']
|
9 |
+
|
10 |
return sentiment
|
11 |
|
12 |
iface = gr.Interface(fn=scoring, inputs="text", outputs="text")
|