at1300 commited on
Commit
98af914
·
verified ·
1 Parent(s): ea8729e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -101,11 +101,11 @@ class MasterAgent:
101
  additional_args = {}
102
  if attached_file:
103
  additional_args = {
104
- "attached_file" = attached_file
105
  }
106
  question = question + f" The file in attached_file can be accessed locally at this path 'file_cache/{attached_file}' or as a public URL at f{DEFAULT_API_URL}/files/f{os.path.splitext(attached_file)[0]}"
107
 
108
- agent_answer = self.master_agent.run(question, additional_args: additional_args)
109
  print(f"Agent answer: {agent_answer}")
110
  return agent_answer
111
 
 
101
  additional_args = {}
102
  if attached_file:
103
  additional_args = {
104
+ "attached_file": attached_file
105
  }
106
  question = question + f" The file in attached_file can be accessed locally at this path 'file_cache/{attached_file}' or as a public URL at f{DEFAULT_API_URL}/files/f{os.path.splitext(attached_file)[0]}"
107
 
108
+ agent_answer = self.master_agent.run(question, additional_args=additional_args)
109
  print(f"Agent answer: {agent_answer}")
110
  return agent_answer
111