Lisibonny commited on
Commit
3f3ff1b
1 Parent(s): 62372a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
4
  import streamlit.components.v1 as components
5
  from transformers import *
6
  from carga_articulos import cargar_articulos
7
- from preprocesamiento_articulos import limpieza_articulos, remove_URL, remove_html_markup, remove_emoji, remover_casos_especiales
8
  from entrenamiento_modelo import term_document_matrix, tf_idf_score
9
  from resultados_consulta import resultados_consulta, detalles_resultados
10
  import tensorflow as tf
@@ -144,6 +144,7 @@ def main():
144
  text=remove_html_markup(df_answer.loc[i, "resumen"])
145
  text=remove_URL(text)
146
  text=remove_emoji(text)
 
147
  text=remover_casos_especiales(text)
148
 
149
  inputs = tokenizer(query, text[0:512], return_tensors='tf')
 
4
  import streamlit.components.v1 as components
5
  from transformers import *
6
  from carga_articulos import cargar_articulos
7
+ from preprocesamiento_articulos import limpieza_articulos, remove_URL, remove_html_markup, remove_emoji, remover_casos_especiales, frases_remover
8
  from entrenamiento_modelo import term_document_matrix, tf_idf_score
9
  from resultados_consulta import resultados_consulta, detalles_resultados
10
  import tensorflow as tf
 
144
  text=remove_html_markup(df_answer.loc[i, "resumen"])
145
  text=remove_URL(text)
146
  text=remove_emoji(text)
147
+ text=frases_remover(text)
148
  text=remover_casos_especiales(text)
149
 
150
  inputs = tokenizer(query, text[0:512], return_tensors='tf')