mrolando commited on
Commit
24798c6
1 Parent(s): 7f78543

added check

Browse files
Files changed (2) hide show
  1. 876038bcd1cf5abcaa28e86d9705eaf6.webp +0 -0
  2. app.py +3 -1
876038bcd1cf5abcaa28e86d9705eaf6.webp ADDED
app.py CHANGED
@@ -21,9 +21,11 @@ def clasificador(image):
21
  return result
22
 
23
 
24
- es_en_translator = pipeline("translation",model = "Helsinki-NLP/opus-mt-en-es")
25
  def translate_text(text):
 
26
  text = es_en_translator(text)[0].get("translation_text")
 
27
  return text
28
 
29
  with gr.Blocks(title = "Uso de AI para la clasificación de imágenes.") as demo:
 
21
  return result
22
 
23
 
24
+ es_en_translator = pipeline("translation",model = "Helsinki-NLP/opus-mt-es-en")
25
  def translate_text(text):
26
+ print(text)
27
  text = es_en_translator(text)[0].get("translation_text")
28
+ print(text)
29
  return text
30
 
31
  with gr.Blocks(title = "Uso de AI para la clasificación de imágenes.") as demo: