SoDehghan's picture
Update app.py
c418af6 verified
raw
history blame
756 Bytes
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)"
)