Spaces:
Runtime error
Runtime error
Commit
·
378efab
1
Parent(s):
a1a03f3
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,9 @@ nlp = pipeline("sentiment-analysis")
|
|
| 6 |
def scoring(text):
|
| 7 |
results = nlp(text)
|
| 8 |
sentiment = results[0]['label']
|
| 9 |
-
|
| 10 |
-
return
|
| 11 |
|
| 12 |
-
iface = gr.Interface(fn=scoring, inputs="text", outputs="
|
| 13 |
|
| 14 |
iface.launch()
|
|
|
|
| 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")
|
| 13 |
|
| 14 |
iface.launch()
|