File size: 259 Bytes
37669fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st
import toxic
import gpt2

PAGES = {
    "Toxic Comment Classifier": toxic,
    "GPT-2 Text Generator": gpt2
}

st.sidebar.title('Navigation')
selection = st.sidebar.radio("Go to", list(PAGES.keys()))

page = PAGES[selection]

page.app()