mirror of
https://github.com/TheBlewish/Automated-AI-Web-Researcher-Ollama.git
synced 2025-01-19 08:57:51 +00:00
Update Self_Improving_Search.py for windows
This commit is contained in:
parent
a53d85e284
commit
aa73019d70
|
@ -35,6 +35,7 @@ for name in ['root', 'duckduckgo_search', 'requests', 'urllib3']:
|
||||||
logging.getLogger(name).propagate = False
|
logging.getLogger(name).propagate = False
|
||||||
|
|
||||||
class OutputRedirector:
|
class OutputRedirector:
|
||||||
|
"""Windows-compatible output redirection"""
|
||||||
def __init__(self, stream=None):
|
def __init__(self, stream=None):
|
||||||
self.stream = stream or StringIO()
|
self.stream = stream or StringIO()
|
||||||
self.original_stdout = sys.stdout
|
self.original_stdout = sys.stdout
|
||||||
|
|
Loading…
Reference in a new issue