Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def postprocessing(pred):
|
|
| 27 |
def predict(text):
|
| 28 |
#img = PILImage.create(img)
|
| 29 |
pred,pred_idx,probs = learner.predict(text)
|
| 30 |
-
return pred
|
| 31 |
|
| 32 |
# Creamos la interfaz y la lanzamos.
|
| 33 |
gr.Interface(fn=predict, inputs=gr.inputs.Textbox(), outputs=gr.outputs.Label()).launch(share=False)
|
|
|
|
| 27 |
def predict(text):
|
| 28 |
#img = PILImage.create(img)
|
| 29 |
pred,pred_idx,probs = learner.predict(text)
|
| 30 |
+
return pred
|
| 31 |
|
| 32 |
# Creamos la interfaz y la lanzamos.
|
| 33 |
gr.Interface(fn=predict, inputs=gr.inputs.Textbox(), outputs=gr.outputs.Label()).launch(share=False)
|