luisvarona commited on
Commit
f429d37
·
verified ·
1 Parent(s): b35a913

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': 'ABBR', 'LABEL_1': 'ENTY', 'LABEL_2': 'DESC', 'LABEL_3': 'HUM', 'LABEL_4': 'LOC', 'LABEL_5': 'NUM'}
15
  label = dicc[label]
16
- return type(score) #(label + ', con score ' + str(score))
17
 
18
  # Creamos la interfaz y la lanzamos.
19
  gr.Interface(fn=predict, inputs="textbox", outputs="textbox", examples=['How old are you?','What time is it?']).launch(share=True)
 
13
  score = dic_label_score['score']
14
  dicc = {'LABEL_0': 'ABBR', 'LABEL_1': 'ENTY', 'LABEL_2': 'DESC', 'LABEL_3': 'HUM', 'LABEL_4': 'LOC', 'LABEL_5': 'NUM'}
15
  label = dicc[label]
16
+ return label # + ', con score ' + str(score)) #No se por qué no funciona todo...
17
 
18
  # Creamos la interfaz y la lanzamos.
19
  gr.Interface(fn=predict, inputs="textbox", outputs="textbox", examples=['How old are you?','What time is it?']).launch(share=True)