Commit
·
391c8bc
1
Parent(s):
efd3f06
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
import streamlit as st
|
| 3 |
import os
|
| 4 |
import sys
|
|
@@ -44,11 +43,14 @@ if cmd_txt and cmd_txt != "":
|
|
| 44 |
save(s)
|
| 45 |
if s.returncode!= 0:
|
| 46 |
st.warning(f'non-zero return: {s.returncode}', icon="⚠️")
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
except Exception as inst:
|
| 49 |
st.error(inst)
|
| 50 |
|
| 51 |
|
| 52 |
if 'outputs' in st.session_state:
|
| 53 |
st.caption('hint: double click on long outputs')
|
| 54 |
-
st.dataframe(st.session_state['outputs'])
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
| 3 |
import sys
|
|
|
|
| 43 |
save(s)
|
| 44 |
if s.returncode!= 0:
|
| 45 |
st.warning(f'non-zero return: {s.returncode}', icon="⚠️")
|
| 46 |
+
if s.stdout:
|
| 47 |
+
st.code(s.stdout.decode())
|
| 48 |
+
if s.stderr:
|
| 49 |
+
st.code(s.stderr.decode())
|
| 50 |
except Exception as inst:
|
| 51 |
st.error(inst)
|
| 52 |
|
| 53 |
|
| 54 |
if 'outputs' in st.session_state:
|
| 55 |
st.caption('hint: double click on long outputs')
|
| 56 |
+
st.dataframe(st.session_state['outputs'])
|