Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def predict(str):
|
|
13 |
score = dic_label_score['score']
|
14 |
dicc = {'LABEL_0': 'Positive', 'LABEL_1': 'Neutral', 'LABEL_2': 'Negative'}
|
15 |
label = dicc[label]
|
16 |
-
return label # + ', con score ' + str(score))
|
17 |
|
18 |
# Creamos la interfaz y la lanzamos.
|
19 |
gr.Interface(fn=predict, inputs="textbox", outputs="textbox", examples=['Le cose della scuola che mi fanno sentire stressato ma non troppo sono le verifiche, interrogazioni, compiti.','Che insegnante meravigliosa e come spiega bene.']).launch(share=True)
|
|
|
13 |
score = dic_label_score['score']
|
14 |
dicc = {'LABEL_0': 'Positive', 'LABEL_1': 'Neutral', 'LABEL_2': 'Negative'}
|
15 |
label = dicc[label]
|
16 |
+
return label # + ', con score ' + str(score))
|
17 |
|
18 |
# Creamos la interfaz y la lanzamos.
|
19 |
gr.Interface(fn=predict, inputs="textbox", outputs="textbox", examples=['Le cose della scuola che mi fanno sentire stressato ma non troppo sono le verifiche, interrogazioni, compiti.','Che insegnante meravigliosa e come spiega bene.']).launch(share=True)
|