Spaces:
Runtime error
Runtime error
Rzhishchev
commited on
Commit
•
37669fc
1
Parent(s):
68edb67
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import toxic
|
3 |
+
import gpt2
|
4 |
+
|
5 |
+
PAGES = {
|
6 |
+
"Toxic Comment Classifier": toxic,
|
7 |
+
"GPT-2 Text Generator": gpt2
|
8 |
+
}
|
9 |
+
|
10 |
+
st.sidebar.title('Navigation')
|
11 |
+
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
|
12 |
+
|
13 |
+
page = PAGES[selection]
|
14 |
+
|
15 |
+
page.app()
|