HarishMaths commited on
Commit
50de9c1
·
verified ·
1 Parent(s): 52c6a9a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -4
src/streamlit_app.py CHANGED
@@ -15,7 +15,9 @@ if notebook:
15
  grammar_tab, = st.tabs(['Grammar/Fact'])
16
  save_notebook(notebook)
17
  with grammar_tab:
18
- with st.spinner("Processing"):
19
- results = execute("/tmp/Notebook")
20
- st.dataframe(results)
21
-
 
 
 
15
  grammar_tab, = st.tabs(['Grammar/Fact'])
16
  save_notebook(notebook)
17
  with grammar_tab:
18
+ try:
19
+ with st.spinner("Processing"):
20
+ results = execute("/tmp/Notebook")
21
+ st.dataframe(results)
22
+ except:
23
+ st.error("Unable to process..")