File size: 1,113 Bytes
6f9ca80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import streamlit as st
from main import setup_agents_and_tasks, kickoff_crew

def main():
    st.title("AI LOVES HR Sales Agent Interface")

    # Input form
    with st.form(key='agent_input_form'):
        lead_name = st.text_input("Lead Name", value="DeepLearningAI")
        industry = st.text_input("Industry", value="Online Learning Platform")
        key_decision_maker = st.text_input("Key Decision Maker", value="Andrew Ng")
        position = st.text_input("Position", value="CEO")
        milestone = st.text_input("Recent Milestone", value="product launch")

        submit_button = st.form_submit_button(label='Submit')

    if submit_button:
        inputs = {
            "lead_name": lead_name,
            "industry": industry,
            "key_decision_maker": key_decision_maker,
            "position": position,
            "milestone": milestone
        }

        # Setup agents and tasks
        crew = setup_agents_and_tasks()

        # Kickoff the crew with the provided inputs
        result = kickoff_crew(crew, inputs)
        st.write(result)

if __name__ == "__main__":
    main()