LeireTedCas commited on
Commit
6c424d8
1 Parent(s): d1cc1b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -21,9 +21,10 @@ archivo ="./preguntas_qh_tags.xlsx"#line:22
21
  xlrd .xlsx .ensure_elementtree_imported (False ,None )#line:25
22
  xlrd .xlsx .Element_has_iter =True #line:26
23
 
24
- # Función para eliminar caracteres no imprimibles
25
- def remove_non_printable(text):
26
- return ''.join(char for char in text if char.isprintable())
 
27
 
28
  async def faq ():#line:28
29
  OO0000OO00O0OOO00 =pd .read_excel (archivo ,engine ="openpyxl")#line:29
 
21
  xlrd .xlsx .ensure_elementtree_imported (False ,None )#line:25
22
  xlrd .xlsx .Element_has_iter =True #line:26
23
 
24
+ def remove_non_printable(value):
25
+ if isinstance(value, str):
26
+ return ''.join(char for char in value if char.isprintable())
27
+ return value
28
 
29
  async def faq ():#line:28
30
  OO0000OO00O0OOO00 =pd .read_excel (archivo ,engine ="openpyxl")#line:29