Denis Davydov commited on
Commit ·
52ee323
1
Parent(s): f68e095
increase limit of text
Browse files246 unmodified lines247248249250251252253246 unmodified lineschunks = (phrase.strip() for line in lines for phrase in line.split(" "))text = ' '.join(chunk for chunk in chunks if chunk)return text[:20000] # Increase to 20k characters to get more contentexcept Exception as e:print(f"Failed to fetch content from {url}: {e}")246 unmodified lines247248249250251252253246 unmodified lineschunks = (phrase.strip() for line in lines for phrase in line.split(" "))text = ' '.join(chunk for chunk in chunks if chunk)return text[:30000]except Exception as e:print(f"Failed to fetch content from {url}: {e}")
tools.py+1-1