import awesome_streamlit as ast import streamlit as st import requests import time from transformers import pipeline import os import models.home import models.hsdtr #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.hsdtr #"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) st.sidebar.header("Info") st.sidebar.write('This tool is developed in the context of the EU project "Utilizing Digital Technology for Social Cohesion, Positive Messaging and Peace by Boosting Collaboration, Exchange and Solidarity" (EuropeAid/170389/DD/ACT/Multi) by [Sabanci University Center of Excellence in Data Analytics](https://github.com/verimsu).')