Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from setup import page_setup | |
| from utilities import save_notebook | |
| from grammar_exec import execute | |
| import pandas as pd | |
| col1, col2, col3 = st.columns([2, 4, 1]) | |
| with col2: | |
| st.title(":blue[Great] Lens 🕵️♂️") | |
| notebook = uploaded_files = st.file_uploader(label='Upload the notebook',accept_multiple_files=False) | |
| if notebook: | |
| grammar_tab, = st.tabs(['Grammar/Fact']) | |
| save_notebook(notebook) | |
| with grammar_tab: | |
| try: | |
| with st.spinner("Processing"): | |
| results = execute("/tmp/Notebook") | |
| st.dataframe(results) | |
| except: | |
| st.error("Unable to process..") | |