mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-07 03:25:32 +00:00
refactor: remove debug print
This commit is contained in:
parent
e74bbe4044
commit
8c77f3eddb
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin python3
|
#!/usr/bin python3
|
||||||
|
|
||||||
|
# NOTE this script is temporary and will be improved
|
||||||
|
|
||||||
from flask import Flask, jsonify, request
|
from flask import Flask, jsonify, request
|
||||||
import threading
|
import threading
|
||||||
import ollama
|
import ollama
|
||||||
|
@ -75,7 +75,6 @@ class BrowserAgent(Agent):
|
|||||||
remaining_links_text = remaining_links if remaining_links is not None else "No links remaining, do a new search."
|
remaining_links_text = remaining_links if remaining_links is not None else "No links remaining, do a new search."
|
||||||
inputs_form = self.browser.get_form_inputs()
|
inputs_form = self.browser.get_form_inputs()
|
||||||
inputs_form_text = '\n'.join(inputs_form)
|
inputs_form_text = '\n'.join(inputs_form)
|
||||||
print("Visible form:\n", inputs_form_text)
|
|
||||||
|
|
||||||
return f"""
|
return f"""
|
||||||
You are a web browser.
|
You are a web browser.
|
||||||
|
@ -308,7 +308,6 @@ class Browser:
|
|||||||
if not xpath:
|
if not xpath:
|
||||||
continue
|
continue
|
||||||
element = self.driver.find_element(By.XPATH, xpath)
|
element = self.driver.find_element(By.XPATH, xpath)
|
||||||
print("found-->", element)
|
|
||||||
input_type = (element.get_attribute("type") or "text").lower()
|
input_type = (element.get_attribute("type") or "text").lower()
|
||||||
if input_type in ["checkbox", "radio"]:
|
if input_type in ["checkbox", "radio"]:
|
||||||
is_checked = element.is_selected()
|
is_checked = element.is_selected()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user