mahadewa commited on
Commit
12145a5
·
verified ·
1 Parent(s): 8657b8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,14 +43,14 @@ class MultiAgents:
43
 
44
  print("MultiAgent successfully initialized")
45
 
46
- def __call__(self, question: str) -> str:
47
  print(f"MultiAgent received question (first 50 chars): {question[:50]}...")
48
 
49
 
50
  #fixed_answer = "This is a default answer."
51
  #print(f"Agent returning fixed answer: {fixed_answer}")
52
  #return fixed_answer
53
- return self.orchestrator(question)
54
 
55
  def run_and_submit_all( profile: gr.OAuthProfile | None):
56
  """
 
43
 
44
  print("MultiAgent successfully initialized")
45
 
46
+ def __call__(self, question: str, file_name: str = None) -> str:
47
  print(f"MultiAgent received question (first 50 chars): {question[:50]}...")
48
 
49
 
50
  #fixed_answer = "This is a default answer."
51
  #print(f"Agent returning fixed answer: {fixed_answer}")
52
  #return fixed_answer
53
+ return self.orchestrator(question, file_name)
54
 
55
  def run_and_submit_all( profile: gr.OAuthProfile | None):
56
  """