Hate-Speech-Detection / test_app.py
SoDehghan's picture
Rename apppppppppp.py to test_app.py
1bf3e35 verified
raw
history blame
630 Bytes
import awesome_streamlit as ast
import streamlit as st
import requests
import time
from transformers import pipeline
import os
import models.home
import models.hsd_tr
#import models.hsd_ar
st.set_page_config(
page_title="Hate Speech Detection",
page_icon="πŸ“–",
layout='wide'
)
PAGES = {
"Home": models.home,
"HSD in Turkish": models.hsd_tr
#"HSD in Arabic": models.hsd_tr
}
st.sidebar.title("Navigation")
selection = st.sidebar.radio("Pages", list(PAGES.keys()))
page = PAGES[selection]
# with st.spinner(f"Loading {selection} ..."):
ast.shared.components.write_page(page)