File size: 587 Bytes
6f3cc7f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9d9bbb0
6f3cc7f
 
 
 
 
 
 
9d9bbb0
6f3cc7f
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import awesome_streamlit as ast
import streamlit as st
import requests
import time 
from transformers import pipeline
import os

import models.hsd_tr
import models.hsd_ar


st.set_page_config(
        page_title="Hate Speech Detection",
        page_icon="",
        layout='wide'
    )

PAGES = {
     "HSD in Turkish": models.hsd_tr,
     "HSD in Arabic":  models.hsd_ar
     
}

st.sidebar.title("Models")
selection = st.sidebar.radio("Pages", list(PAGES.keys()))

page = PAGES[selection]
#st.sidebar.page_link(page)
#ast.shared.components.write_page(page)

#st.sidebar.header("Info")