Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ if prompt := st.chat_input("Your message"):
|
|
107 |
with st.spinner("Thinking..."):
|
108 |
try:
|
109 |
start_time = time.time()
|
110 |
-
response = run_agent_with_timeout(agent_executor, {"input": prompt}, timeout=
|
111 |
if isinstance(response, dict) and "output" in response:
|
112 |
assistant_response = response["output"]
|
113 |
elif isinstance(response, (AgentAction, AgentFinish)):
|
|
|
107 |
with st.spinner("Thinking..."):
|
108 |
try:
|
109 |
start_time = time.time()
|
110 |
+
response = run_agent_with_timeout(agent_executor, {"input": prompt}, timeout=15)
|
111 |
if isinstance(response, dict) and "output" in response:
|
112 |
assistant_response = response["output"]
|
113 |
elif isinstance(response, (AgentAction, AgentFinish)):
|