Spaces:
Running
Running
acecalisto3
commited on
Commit
•
5e6f07a
1
Parent(s):
9cf63c4
Update app.py
Browse files
app.py
CHANGED
@@ -561,12 +561,12 @@ def add_file_to_dictionary(files, file_path):
|
|
561 |
|
562 |
# Using the modified and extended class and functions, update the callback for the 'Automate' button in the Streamlit UI:
|
563 |
if st.button("Automate", args=(hf_token,)):
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
|
571 |
# If everything went well, proceed to deploy the Space
|
572 |
if agent._hf_api and agent.has_valid_hf_token():
|
|
|
561 |
|
562 |
# Using the modified and extended class and functions, update the callback for the 'Automate' button in the Streamlit UI:
|
563 |
if st.button("Automate", args=(hf_token,)):
|
564 |
+
agent = AIAgent(selected_agent, "", []) # Load the agent without skills for now
|
565 |
+
summary, next_step = agent.autonomous_build(st.session_state.chat_history, st.session_state.workspace_projects, project_name, selected_model, hf_token)
|
566 |
+
st.write("Autonomous Build Summary:")
|
567 |
+
st.write(summary)
|
568 |
+
st.write("Next Step:")
|
569 |
+
st.write(next_step)
|
570 |
|
571 |
# If everything went well, proceed to deploy the Space
|
572 |
if agent._hf_api and agent.has_valid_hf_token():
|