Sandiago21 commited on
Commit
152c460
·
verified ·
1 Parent(s): 150da08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -898,10 +898,10 @@ class BasicAgent:
898
  # if question == "Given this table defining * on the set S = {a, b, c, d, e}\n\n|*|a|b|c|d|e|\n|---|---|---|---|---|---|\n|a|a|b|c|b|d|\n|b|b|c|a|e|c|\n|c|c|a|b|b|a|\n|d|b|e|b|e|d|\n|e|d|b|a|d|c|\n\nprovide the subset of S involved in any possible counter-examples that prove * is not commutative. Provide your answer as a comma separated list of the elements in the set in alphabetical order.":
899
  # if " image " not in question and " video " not in question:
900
  # if question == "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?":
901
-
902
- # if question != "aalskdalsdh":
903
-
904
- if question == "The attached Excel file contains the sales of menu items for a local fast-food chain. What were the total sales that the chain made from food (not including drinks)? Express your answer in USD with two decimal places.":
905
  state = {
906
  "messages": question,
907
  }
@@ -931,11 +931,11 @@ class BasicAgent:
931
  # df = pd.read_excel(filename)
932
 
933
  try:
934
- # response = self.safe_app.invoke(state)
935
- # agent_answer = response["output"]
936
 
937
  # agent_answer = str(df)
938
- agent_answer = str(response.status_code) + " - " + task_id
939
  except:
940
  agent_answer = ""
941
 
 
898
  # if question == "Given this table defining * on the set S = {a, b, c, d, e}\n\n|*|a|b|c|d|e|\n|---|---|---|---|---|---|\n|a|a|b|c|b|d|\n|b|b|c|a|e|c|\n|c|c|a|b|b|a|\n|d|b|e|b|e|d|\n|e|d|b|a|d|c|\n\nprovide the subset of S involved in any possible counter-examples that prove * is not commutative. Provide your answer as a comma separated list of the elements in the set in alphabetical order.":
899
  # if " image " not in question and " video " not in question:
900
  # if question == "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?":
901
+ # if question == "The attached Excel file contains the sales of menu items for a local fast-food chain. What were the total sales that the chain made from food (not including drinks)? Express your answer in USD with two decimal places.":
902
+
903
+ if question != "aalskdalsdh":
904
+
905
  state = {
906
  "messages": question,
907
  }
 
931
  # df = pd.read_excel(filename)
932
 
933
  try:
934
+ response = self.safe_app.invoke(state)
935
+ agent_answer = response["output"]
936
 
937
  # agent_answer = str(df)
938
+ # agent_answer = str(response.status_code) + " - " + task_id
939
  except:
940
  agent_answer = ""
941