npc0 commited on
Commit
d06de24
·
verified ·
1 Parent(s): 74210a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"):