Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 hsd_tr
|
9 |
+
|
10 |
+
|
11 |
+
st.set_page_config(
|
12 |
+
page_title="Hate Speech Detection",
|
13 |
+
page_icon="",
|
14 |
+
layout='wide'
|
15 |
+
)
|
16 |
+
|
17 |
+
PAGES = {
|
18 |
+
"HSD in Turkish": hsd_tr
|
19 |
+
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
st.sidebar.title("Models")
|
24 |
+
selection = st.sidebar.radio("Pages", list(PAGES.keys()))
|
25 |
+
|
26 |
+
page = PAGES[selection]
|