Spaces:
Running
Running
bump vectara-agentic to 0.1.7
Browse files- app.py +6 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -6,6 +6,9 @@ import streamlit as st
|
|
6 |
from streamlit_pills import pills
|
7 |
from streamlit_feedback import streamlit_feedback
|
8 |
|
|
|
|
|
|
|
9 |
from vectara_agentic.agent import AgentStatusType
|
10 |
|
11 |
from agent import initialize_agent, get_agent_config
|
@@ -37,7 +40,7 @@ def update_func(status_type: AgentStatusType, msg: str):
|
|
37 |
output = f"{status_type.value} - {msg}"
|
38 |
st.session_state.log_messages.append(output)
|
39 |
|
40 |
-
def launch_bot():
|
41 |
def reset():
|
42 |
st.session_state.messages = [{"role": "assistant", "content": initial_prompt, "avatar": "🦖"}]
|
43 |
st.session_state.thinking_message = "Agent at work..."
|
@@ -154,4 +157,5 @@ def launch_bot():
|
|
154 |
|
155 |
if __name__ == "__main__":
|
156 |
st.set_page_config(page_title="Financial Assistant", layout="wide")
|
157 |
-
|
|
|
|
6 |
from streamlit_pills import pills
|
7 |
from streamlit_feedback import streamlit_feedback
|
8 |
|
9 |
+
import nest_asyncio
|
10 |
+
import asyncio
|
11 |
+
|
12 |
from vectara_agentic.agent import AgentStatusType
|
13 |
|
14 |
from agent import initialize_agent, get_agent_config
|
|
|
40 |
output = f"{status_type.value} - {msg}"
|
41 |
st.session_state.log_messages.append(output)
|
42 |
|
43 |
+
async def launch_bot():
|
44 |
def reset():
|
45 |
st.session_state.messages = [{"role": "assistant", "content": initial_prompt, "avatar": "🦖"}]
|
46 |
st.session_state.thinking_message = "Agent at work..."
|
|
|
157 |
|
158 |
if __name__ == "__main__":
|
159 |
st.set_page_config(page_title="Financial Assistant", layout="wide")
|
160 |
+
nest_asyncio.apply()
|
161 |
+
asyncio.run(launch_bot())
|
requirements.txt
CHANGED
@@ -6,4 +6,4 @@ streamlit_feedback==0.1.3
|
|
6 |
uuid==1.30
|
7 |
langdetect==1.0.9
|
8 |
langcodes==3.4.0
|
9 |
-
vectara-agentic==0.1.
|
|
|
6 |
uuid==1.30
|
7 |
langdetect==1.0.9
|
8 |
langcodes==3.4.0
|
9 |
+
vectara-agentic==0.1.7
|