Update app.py
Browse files
app.py
CHANGED
|
@@ -854,7 +854,7 @@ def tool_executor(state: AgentState):
|
|
| 854 |
api = YouTubeTranscriptApi()
|
| 855 |
transcript = api.fetch(video_id)
|
| 856 |
texts = [x.text for x in transcript]
|
| 857 |
-
webpage_information_complete = " \n ".join(
|
| 858 |
else:
|
| 859 |
webpage_results = visit_webpage_wiki(result)
|
| 860 |
webpage_result = " \n ".join(webpage_results)
|
|
@@ -964,7 +964,7 @@ class BasicAgent:
|
|
| 964 |
if question == "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.\n\nWhat does Teal'c say in response to the question \"Isn't that hot?\"":
|
| 965 |
|
| 966 |
# if question != "aalskdalsdh" and filename == "":
|
| 967 |
-
time.sleep(120)
|
| 968 |
|
| 969 |
|
| 970 |
state = {
|
|
@@ -997,7 +997,7 @@ class BasicAgent:
|
|
| 997 |
|
| 998 |
try:
|
| 999 |
response = self.safe_app.invoke(state)
|
| 1000 |
-
agent_answer = str(response["
|
| 1001 |
|
| 1002 |
# agent_answer = str(df)
|
| 1003 |
# agent_answer = str(response.status_code) + " - " + task_id
|
|
|
|
| 854 |
api = YouTubeTranscriptApi()
|
| 855 |
transcript = api.fetch(video_id)
|
| 856 |
texts = [x.text for x in transcript]
|
| 857 |
+
webpage_information_complete = " \n ".join(texts)
|
| 858 |
else:
|
| 859 |
webpage_results = visit_webpage_wiki(result)
|
| 860 |
webpage_result = " \n ".join(webpage_results)
|
|
|
|
| 964 |
if question == "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.\n\nWhat does Teal'c say in response to the question \"Isn't that hot?\"":
|
| 965 |
|
| 966 |
# if question != "aalskdalsdh" and filename == "":
|
| 967 |
+
# time.sleep(120)
|
| 968 |
|
| 969 |
|
| 970 |
state = {
|
|
|
|
| 997 |
|
| 998 |
try:
|
| 999 |
response = self.safe_app.invoke(state)
|
| 1000 |
+
agent_answer = str(response["proposed_action"])
|
| 1001 |
|
| 1002 |
# agent_answer = str(df)
|
| 1003 |
# agent_answer = str(response.status_code) + " - " + task_id
|