Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def crawl(start_url: str, max_depth: int = 1, delay: float = 0.1) -> Tuple[List[
|
|
47 |
except Exception as e:
|
48 |
print(f"Error crawling {url}: {e}")
|
49 |
|
50 |
-
return results, crawled_urls
|
51 |
|
52 |
|
53 |
def chunk_text(text: str, max_chunk_size: int = 1000) -> List[str]:
|
|
|
47 |
except Exception as e:
|
48 |
print(f"Error crawling {url}: {e}")
|
49 |
|
50 |
+
return results[:10], crawled_urls[:10]
|
51 |
|
52 |
|
53 |
def chunk_text(text: str, max_chunk_size: int = 1000) -> List[str]:
|