SoDehghan commited on
Commit
e98c11f
·
verified ·
1 Parent(s): 83f0f91

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
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]