Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def askGPT(input):
|
|
108 |
return resp
|
109 |
|
110 |
def runCmd(flag):
|
111 |
-
if flag and (not st.session_state['command'].startswith('rm '))
|
112 |
with st.spinner('Running command \'' + st.session_state['command'] + '\''):
|
113 |
try:
|
114 |
p = subprocess.Popen(st.session_state['command'], shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
|
|
|
108 |
return resp
|
109 |
|
110 |
def runCmd(flag):
|
111 |
+
if flag and (not st.session_state['command'].startswith('rm ')):
|
112 |
with st.spinner('Running command \'' + st.session_state['command'] + '\''):
|
113 |
try:
|
114 |
p = subprocess.Popen(st.session_state['command'], shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
|