Spaces:
Runtime error
Runtime error
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': 'ABBR', 'LABEL_1': 'ENTY', 'LABEL_2': 'DESC', 'LABEL_3': 'HUM', 'LABEL_4': 'LOC', 'LABEL_5': 'NUM'}
|
15 |
label = dicc[label]
|
16 |
-
return
|
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)
|