Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
vinimoreira
/
RAG_backend
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
RAG_backend
/
src
/
utils
/
strings.py
vinimoreira
Add files for RAG backend
2068d15
verified
8 months ago
raw
Copy download link
history
blame
contribute
delete
89 Bytes
import
re
def
clean_text
(
text:
str
) ->
str
:
return
re.sub(
r"\s+"
,
" "
, text).strip()