Update app.py
Browse files
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(
|
96 |
return agent1(output), s2
|
97 |
|
98 |
def transition_s2(query):
|
99 |
-
output = chain2.invoke(
|
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
|