acecalisto3 commited on
Commit
2d38d31
·
verified ·
1 Parent(s): fd59a9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -47,9 +47,12 @@ class Pypelyne:
47
  def add_tool(self, tool: Tool):
48
  self.tools.append(tool)
49
 
50
- def generate_chat_app(self) -> str:
51
- time.sleep(2)
52
- return f"Chat app generated with {len(self.agents)} agents and {len(self.tools)} tools."
 
 
 
53
 
54
  def run_gpt(
55
  self,
 
47
  def add_tool(self, tool: Tool):
48
  self.tools.append(tool)
49
 
50
+ def launch_chatapp(project_path):
51
+ if st.button("Launch ChatApp"):
52
+ st.write("Launching ChatApp...")
53
+ os.chdir(project_path)
54
+ subprocess.run(["python", "app.py"])
55
+ st.write("ChatApp launched successfully!")
56
 
57
  def run_gpt(
58
  self,