Spaces:
Sleeping
Sleeping
LeireTedCas
commited on
Commit
•
1ac9416
1
Parent(s):
eb69b27
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,12 @@ xlrd .xlsx .ensure_elementtree_imported (False ,None )#line:25
|
|
23 |
xlrd .xlsx .Element_has_iter =True #line:26
|
24 |
|
25 |
def remove_non_printable(value):
|
26 |
-
if isinstance(value, str):
|
27 |
#return re.sub(r'[^\x20-\x7E\n\t\xa0]|(?<=\w)\n|(?<=\w)\t', '', value)
|
28 |
#return re.sub(r'[\x00-\x1F\x7F-\x9F\xa0\n\t\s]+|(?<=\w)\\n|(?<=\w)\\xa0(?<=\w)\\n|(?<=\w)\\t', ' ', value)
|
29 |
-
value_sin = re.sub(r'[\s\xa0]+', ' ', value)
|
30 |
#value = value.replace("\xa0", "").replace("\n", "").replace("\t", "")
|
31 |
-
return
|
32 |
|
33 |
async def faq ():#line:28
|
34 |
OO0000OO00O0OOO00 =pd .read_excel (archivo ,engine ="openpyxl")#line:29
|
|
|
23 |
xlrd .xlsx .Element_has_iter =True #line:26
|
24 |
|
25 |
def remove_non_printable(value):
|
26 |
+
#if isinstance(value, str):
|
27 |
#return re.sub(r'[^\x20-\x7E\n\t\xa0]|(?<=\w)\n|(?<=\w)\t', '', value)
|
28 |
#return re.sub(r'[\x00-\x1F\x7F-\x9F\xa0\n\t\s]+|(?<=\w)\\n|(?<=\w)\\xa0(?<=\w)\\n|(?<=\w)\\t', ' ', value)
|
29 |
+
#value_sin = re.sub(r'[\s\xa0]+', ' ', value)
|
30 |
#value = value.replace("\xa0", "").replace("\n", "").replace("\t", "")
|
31 |
+
return value
|
32 |
|
33 |
async def faq ():#line:28
|
34 |
OO0000OO00O0OOO00 =pd .read_excel (archivo ,engine ="openpyxl")#line:29
|