Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,11 @@ class Pypelyne:
|
|
48 |
self.tools.append(tool)
|
49 |
|
50 |
def launch_chatapp(project_path):
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
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))
|