Update app.py
Browse files
app.py
CHANGED
|
@@ -975,10 +975,10 @@ class BasicAgent:
|
|
| 975 |
|
| 976 |
# if question != "aalskdalsdh" and filename == "":
|
| 977 |
if question in [
|
| 978 |
-
"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?\"",
|
| 979 |
-
"Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?" or question == "What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?",
|
| 980 |
-
"Where were the Vietnamese specimens described by Kuznetzov in Nedoshivina's 2010 paper eventually deposited? Just give me the city name without abbreviations.",
|
| 981 |
-
"What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?",
|
| 982 |
"How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.",
|
| 983 |
""".rewsna eht sa "tfel" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI""",
|
| 984 |
]:
|
|
@@ -1016,6 +1016,8 @@ class BasicAgent:
|
|
| 1016 |
response = self.safe_app.invoke(state)
|
| 1017 |
agent_answer = response["output"]
|
| 1018 |
|
|
|
|
|
|
|
| 1019 |
# agent_answer = str(df)
|
| 1020 |
# agent_answer = str(response.status_code) + " - " + task_id
|
| 1021 |
except Exception as e:
|
|
|
|
| 975 |
|
| 976 |
# if question != "aalskdalsdh" and filename == "":
|
| 977 |
if question in [
|
| 978 |
+
# "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?\"",
|
| 979 |
+
# "Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?" or question == "What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?",
|
| 980 |
+
# "Where were the Vietnamese specimens described by Kuznetzov in Nedoshivina's 2010 paper eventually deposited? Just give me the city name without abbreviations.",
|
| 981 |
+
# "What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?",
|
| 982 |
"How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.",
|
| 983 |
""".rewsna eht sa "tfel" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI""",
|
| 984 |
]:
|
|
|
|
| 1016 |
response = self.safe_app.invoke(state)
|
| 1017 |
agent_answer = response["output"]
|
| 1018 |
|
| 1019 |
+
agent_answer = str(response)
|
| 1020 |
+
|
| 1021 |
# agent_answer = str(df)
|
| 1022 |
# agent_answer = str(response.status_code) + " - " + task_id
|
| 1023 |
except Exception as e:
|