Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfix the prompt
app.py
CHANGED
|
@@ -293,7 +293,7 @@ if st.session_state.get('is_key_valid', False):
|
|
| 293 |
Question: {input}
|
| 294 |
Thought:{agent_scratchpad}"""
|
| 295 |
|
| 296 |
-
prompt =
|
| 297 |
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True, return_intermediate_steps=True)
|
| 298 |
|
| 299 |
col1, col2 = st.columns([1, 2])
|
|
|
|
| 293 |
Question: {input}
|
| 294 |
Thought:{agent_scratchpad}"""
|
| 295 |
|
| 296 |
+
prompt = ChatPromptTemplate.from_template(template)
|
| 297 |
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True, return_intermediate_steps=True)
|
| 298 |
|
| 299 |
col1, col2 = st.columns([1, 2])
|