Spaces:
Runtime error
Runtime error
Commit
·
00a39fe
1
Parent(s):
378efab
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,7 @@ nlp = pipeline("sentiment-analysis")
|
|
| 5 |
|
| 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")
|
|
|
|
| 5 |
|
| 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")
|