kylar55 commited on
Commit
0c5eff0
·
verified ·
1 Parent(s): d087cd4

Update app.py

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