Spaces:
Running
Running
Delete app.py
Browse files
app.py
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
import awesome_streamlit as ast
|
2 |
-
import streamlit as st
|
3 |
-
import requests
|
4 |
-
import time
|
5 |
-
from transformers import pipeline
|
6 |
-
import os
|
7 |
-
|
8 |
-
import models.home
|
9 |
-
import models.hsd_tr
|
10 |
-
import models.hsd_ar
|
11 |
-
|
12 |
-
|
13 |
-
st.set_page_config(
|
14 |
-
page_title="Hate Speech Detection",
|
15 |
-
page_icon="",
|
16 |
-
layout='wide'
|
17 |
-
)
|
18 |
-
|
19 |
-
PAGES = {
|
20 |
-
"Home": models.home,
|
21 |
-
"HSD in Turkish": models.hsd_tr,
|
22 |
-
"HSD in Arabic": models.hsd_ar
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
st.sidebar.title("Navigation")
|
27 |
-
selection = st.sidebar.radio("Pages", list(PAGES.keys()))
|
28 |
-
|
29 |
-
page = PAGES[selection]
|
30 |
-
# with st.spinner(f"Loading {selection} ..."):
|
31 |
-
ast.shared.components.write_page(page)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|