Update app.py
Browse files
app.py
CHANGED
|
@@ -886,7 +886,7 @@ def tool_executor(state: AgentState):
|
|
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
-
webpage_results = visit_webpage_main(
|
| 890 |
webpage_result = " \n ".join(webpage_results)
|
| 891 |
|
| 892 |
# for webpage_result in webpage_results:
|
|
@@ -921,6 +921,7 @@ def tool_executor(state: AgentState):
|
|
| 921 |
except:
|
| 922 |
if "answer" in state["proposed_action"]:
|
| 923 |
webpage_information_complete = f"""answer: {state["proposed_action"]["answer"]}"""
|
|
|
|
| 924 |
state["best_query_webpage_information_similarity_score"] = 1.0
|
| 925 |
else:
|
| 926 |
state["information"] = ""
|
|
|
|
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
+
webpage_results = visit_webpage_main(action.args["url"])
|
| 890 |
webpage_result = " \n ".join(webpage_results)
|
| 891 |
|
| 892 |
# for webpage_result in webpage_results:
|
|
|
|
| 921 |
except:
|
| 922 |
if "answer" in state["proposed_action"]:
|
| 923 |
webpage_information_complete = f"""answer: {state["proposed_action"]["answer"]}"""
|
| 924 |
+
state["information"] = webpage_information_complete
|
| 925 |
state["best_query_webpage_information_similarity_score"] = 1.0
|
| 926 |
else:
|
| 927 |
state["information"] = ""
|