Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,6 +20,8 @@ def predict(text):
|
|
| 20 |
return "Japonés"
|
| 21 |
if pred == "es":
|
| 22 |
return "Español"
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Creamos la interfaz y la lanzamos.
|
| 25 |
gr.Interface(fn=predict, inputs=gr.inputs.TextBox(shape=(128, 128)), outputs=gr.outputs.Label(num_top_classes=3),examples=["私は吉良吉影、33歳、家は杜王町の北西、大きな家が立ち並ぶところにあり、未婚です。","Esta frase no es un meme","Somebody once told me the world is gonna"]).launch(share=False)
|
|
|
|
| 20 |
return "Japonés"
|
| 21 |
if pred == "es":
|
| 22 |
return "Español"
|
| 23 |
+
else:
|
| 24 |
+
return "other"
|
| 25 |
|
| 26 |
# Creamos la interfaz y la lanzamos.
|
| 27 |
gr.Interface(fn=predict, inputs=gr.inputs.TextBox(shape=(128, 128)), outputs=gr.outputs.Label(num_top_classes=3),examples=["私は吉良吉影、33歳、家は杜王町の北西、大きな家が立ち並ぶところにあり、未婚です。","Esta frase no es un meme","Somebody once told me the world is gonna"]).launch(share=False)
|