File size: 664 Bytes
8a3238b
f7502db
 
 
 
65baf9f
8a3238b
f7502db
 
 
8a3238b
60247c1
8a3238b
f7502db
 
 
 
50de9c1
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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..")