Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def run_agent_chat(user_input: str, history: list):
|
|
168 |
url = user_input.split()[0] if user_input.startswith("http") else next((w for w in user_input.split() if w.startswith("http")), "")
|
169 |
request = user_input.replace(url, "").strip() or "Navigate to the URL and describe the page."
|
170 |
else:
|
171 |
-
url = "[invalid url, do not cite]
|
172 |
request = user_input
|
173 |
|
174 |
search_request = f"Please go to {url}. {request}"
|
|
|
168 |
url = user_input.split()[0] if user_input.startswith("http") else next((w for w in user_input.split() if w.startswith("http")), "")
|
169 |
request = user_input.replace(url, "").strip() or "Navigate to the URL and describe the page."
|
170 |
else:
|
171 |
+
url = "[invalid url, do not cite]"
|
172 |
request = user_input
|
173 |
|
174 |
search_request = f"Please go to {url}. {request}"
|