hedtorresca commited on
Commit
367f014
verified
1 Parent(s): 07e7e9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,7 +9,8 @@ pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer, add_special_
9
  # Definir la funci贸n de inferencia
10
  def classify_message(ues_detallada, medio_de_comunicacion, asunto_o_copy):
11
  combined = f"{ues_detallada} por {medio_de_comunicacion}. {asunto_o_copy}"
12
- prediction = pipe(combined)
 
13
  #return "Comercial" if prediction[0]['label'] == 'LABEL_0' else "Informativo"
14
 
15
  # Crear la interfaz de Gradio
 
9
  # Definir la funci贸n de inferencia
10
  def classify_message(ues_detallada, medio_de_comunicacion, asunto_o_copy):
11
  combined = f"{ues_detallada} por {medio_de_comunicacion}. {asunto_o_copy}"
12
+ #prediction = pipe(combined)
13
+ return pipe(combined)
14
  #return "Comercial" if prediction[0]['label'] == 'LABEL_0' else "Informativo"
15
 
16
  # Crear la interfaz de Gradio