Spaces:
Runtime error
Runtime error
Rzhishchev
commited on
Commit
•
1920f72
1
Parent(s):
5061eb8
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
-
import
|
3 |
-
import
|
4 |
|
5 |
-
#
|
6 |
-
|
7 |
-
# "GPT-2 Text Generator": gpt2
|
8 |
-
# }
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
page
|
14 |
-
|
15 |
-
page.app()
|
|
|
1 |
import streamlit as st
|
2 |
+
from gpt2 import app as gpt2_app
|
3 |
+
from toxic import app as toxic_app
|
4 |
|
5 |
+
# Sidebar for page selection
|
6 |
+
page = st.sidebar.selectbox("Choose a page", ["GPT-2", "Toxicity Analysis"])
|
|
|
|
|
7 |
|
8 |
+
# Display the selected page
|
9 |
+
if page == "GPT-2":
|
10 |
+
gpt2_app()
|
11 |
+
elif page == "Toxicity Analysis":
|
12 |
+
toxic_app()
|
|