PablitoGil14 commited on
Commit
44f0370
·
verified ·
1 Parent(s): 405414d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)