0xrsydn commited on
Commit
14749b0
β€’
1 Parent(s): 5b12cd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import streamlit as st
2
- from ai_agent import pandas_agent
 
 
3
 
4
  # Create a title and description
5
  st.title("Pandas AI Agent App πŸ€–")
@@ -18,7 +20,7 @@ if st.button('Execute'):
18
  # Create a loading spinner
19
  with st.spinner('Running the agent...'):
20
  # Call the pandas_agent function
21
- output = pandas_agent(file, agent_input)
22
 
23
  # Display the output
24
  st.write(output)
 
1
  import streamlit as st
2
+ from ai_agent import AIAgent
3
+
4
+ agent = AIAgent()
5
 
6
  # Create a title and description
7
  st.title("Pandas AI Agent App πŸ€–")
 
20
  # Create a loading spinner
21
  with st.spinner('Running the agent...'):
22
  # Call the pandas_agent function
23
+ output = agent.pandas_agent(file, agent_input)
24
 
25
  # Display the output
26
  st.write(output)