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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -48,11 +48,11 @@ class Pypelyne:
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,
@@ -62,7 +62,7 @@ class Pypelyne:
62
  **prompt_kwargs,
63
  ) -> str:
64
  content = f"""{PREFIX}
65
- {prompt_template.format(**prompt_kwargs)}"""
66
 
67
  if VERBOSE:
68
  print(LOG_PROMPT.format(content))
 
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,
 
62
  **prompt_kwargs,
63
  ) -> str:
64
  content = f"""{PREFIX}
65
+ {prompt_template.format(**prompt_kwargs)}"""
66
 
67
  if VERBOSE:
68
  print(LOG_PROMPT.format(content))