Spaces:
Sleeping
Sleeping
File size: 756 Bytes
e98c11f 916b7b8 e98c11f 432d0c3 1eec801 e98c11f 1e86744 c418af6 |
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 32 33 34 35 36 37 38 |
import awesome_streamlit as ast
import streamlit as st
import requests
import time
from transformers import pipeline
import os
import hsd_tr
import hsd_ar
st.set_page_config(
page_title="Hate Speech Detection",
page_icon="",
layout='wide'
)
PAGES = {
"HSD in Turkish": hsd_tr,
"HSD in Arabic": hsd_ar
}
st.sidebar.title("Models")
selection = st.sidebar.radio("Pages", list(PAGES.keys()))
page = PAGES[selection]
ast.shared.components.write_page(page)
st.sidebar.header("Info")
st.sidebar.write(
"Models are available on [HF Hub](https://huggingface.co/collections/boun-tabi-LMG)"
)
st.sidebar.write(
"Model source code available on [GitHub](https://github.com/boun-tabi-LMG/turkish-lm-tuner)"
)
|