Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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 |
-
|
| 19 |
-
|
| 20 |
-
|
| 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..")
|