Illia56 commited on
Commit
d750342
·
1 Parent(s): 4cde0cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -63,10 +63,10 @@ if prompt := st.chat_input("Ask Palm 2 anything..."):
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
  # Add assistant response to chat history
72
  st.session_state.messages.append({"role": "assistant", "content": 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
  # Add assistant response to chat history
72
  st.session_state.messages.append({"role": "assistant", "content": response['content']})