File size: 342 Bytes
37669fc
1920f72
 
37669fc
1920f72
c2cba17
37669fc
1920f72
1d81050
1920f72
1d81050
1920f72
1
2
3
4
5
6
7
8
9
10
11
12
13
import streamlit as st
from gpt2 import app as gpt2_app
from toxic import app as toxic_app

# Sidebar for page selection
page = st.sidebar.selectbox("Choose a page", ["GPT-2 Generator", "Toxic Comment Detector"])

# Display the selected page
if page == "GPT-2 Generator":
    gpt2_app()
elif page == "Toxic Comment Detector":
    toxic_app()