Spaces:
Runtime error
Runtime error
Commit ·
8b441ff
1
Parent(s): 95320f9
test3
Browse filesFiles changed (2)
- scraper/html_loader.py+2-3
- server.py+1-3
14 unmodified lines15161718192021222314 unmodified linesasync def __aenter__(self):self.playwright = await async_playwright().start()self.browser = await self.playwright.chromium.launch(headless=True)self.context = await self.browser.new_context(user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36")14 unmodified lines151617181920212214 unmodified linesasync def __aenter__(self):self.playwright = await async_playwright().start()self.browser = await self.playwright.firefox.launch(headless=True)self.context = await self.browser.new_context(user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36")
31 unmodified lines323334353637383931 unmodified linesscrape_button.click(scrape, inputs=url_input, outputs=output)if __name__ == "__main__":os.environ['no_proxy'] = 'localhost, 127.0.0.1, ::1'#demo.launch(server_name="0.0.0.0", server_port=7860)demo.launch(mcp_server=True)31 unmodified lines32333435363731 unmodified linesscrape_button.click(scrape, inputs=url_input, outputs=output)if __name__ == "__main__":#os.environ['no_proxy'] = 'localhost, 127.0.0.1, ::1'#demo.launch(server_name="0.0.0.0", server_port=7860)demo.launch(mcp_server=True)
scraper/html_loader.py+2-3
server.py+1-3