Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
agent.py
CHANGED
@@ -518,6 +518,8 @@ def search_and_extract_content_from_url(query: str) -> List[Document]:
|
|
518 |
doc.metadata["source"] = url
|
519 |
doc.metadata["type"] = "web_text"
|
520 |
|
|
|
|
|
521 |
return documents
|
522 |
except Exception as e:
|
523 |
# Handle any exceptions that occur during content extraction
|
|
|
518 |
doc.metadata["source"] = url
|
519 |
doc.metadata["type"] = "web_text"
|
520 |
|
521 |
+
print(documents)
|
522 |
+
|
523 |
return documents
|
524 |
except Exception as e:
|
525 |
# Handle any exceptions that occur during content extraction
|