Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ if prompt := st.chat_input("What is up?"):
|
|
58 |
result = subprocess.run(command, capture_output=True, text=True, check=True)
|
59 |
response = result.stdout
|
60 |
except subprocess.CalledProcessError as e:
|
61 |
-
response = e.output
|
62 |
|
63 |
# Display assistant response in chat message container
|
64 |
with st.chat_message("assistant"):
|
|
|
58 |
result = subprocess.run(command, capture_output=True, text=True, check=True)
|
59 |
response = result.stdout
|
60 |
except subprocess.CalledProcessError as e:
|
61 |
+
response = f"Ouput: {e.output}\nError: {e.stderr}"
|
62 |
|
63 |
# Display assistant response in chat message container
|
64 |
with st.chat_message("assistant"):
|