Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ tools = [StableDiffusionTool().langchain, ImageCaptioningTool().langchain,
|
|
14 |
|
15 |
agent = initialize_agent(tools, llm, memory=memory, agent="conversational-react-description", verbose=True)
|
16 |
|
17 |
-
def run_text(
|
18 |
-
output = agent.run(input=(
|
19 |
|
20 |
return output,output
|
21 |
|
|
|
14 |
|
15 |
agent = initialize_agent(tools, llm, memory=memory, agent="conversational-react-description", verbose=True)
|
16 |
|
17 |
+
def run_text(text, state):
|
18 |
+
output = agent.run(input=(text))
|
19 |
|
20 |
return output,output
|
21 |
|