Illia56 commited on
Commit
72dce92
·
1 Parent(s): b5e64b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -62,12 +62,12 @@ if prompt := st.chat_input("Ask Palm 2 anything..."):
62
  st.markdown(response['content'])
63
 
64
  if response['code']:
65
- if st.button('Run Code'):
66
- with st.status("Running code..."):
67
- try:
68
- exec(response['code'])
69
- except Exception as e:
70
- st.write(f"ERROR {e}...")
71
 
72
 
73
 
 
62
  st.markdown(response['content'])
63
 
64
  if response['code']:
65
+ # if st.button('Run Code'):
66
+ with st.status("Running code..."):
67
+ try:
68
+ exec(response['code'])
69
+ except Exception as e:
70
+ st.write(f"ERROR {e}...")
71
 
72
 
73