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