Sreekan commited on
Commit
e48ef1a
·
verified ·
1 Parent(s): cc5d590

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,11 +92,11 @@ chain2 = LLMChain(llm=llm2, prompt=PromptTemplate(input_variables=["query"], tem
92
 
93
  # Define the transition functions
94
  def transition_s1(query):
95
- output = chain1.invoke(query=query)
96
  return agent1(output), s2
97
 
98
  def transition_s2(query):
99
- output = chain2.invoke(query=query)
100
  return agent2(output), s1
101
 
102
  # Define the respond function
 
92
 
93
  # Define the transition functions
94
  def transition_s1(query):
95
+ output = chain1.invoke(input=query)
96
  return agent1(output), s2
97
 
98
  def transition_s2(query):
99
+ output = chain2.invoke(input=query)
100
  return agent2(output), s1
101
 
102
  # Define the respond function