import numpy as np import pandas as pd import streamlit as st from streamlit_text_rating.st_text_rater import st_text_rater from transformers import AutoTokenizer,AutoModelForSequenceClassification import onnxruntime as ort import os import time import plotly.express as px import plotly.graph_objects as go global _plotly_config _plotly_config={'displayModeBar': False} from sentiment_clf_helper import classify_sentiment,create_onnx_model_sentiment,classify_sentiment_onnx from zeroshot_clf_helper import zero_shot_classification,create_onnx_model_zs,zero_shot_classification_onnx st.set_page_config( # Alternate names: setup_page, page, layout layout="wide", # Can be "centered" or "wide". In the future also "dashboard", etc. initial_sidebar_state="auto", # Can be "auto", "expanded", "collapsed" page_title='None', # String or None. Strings get appended with "• Streamlit". ) padding_top = 0 st.markdown(f""" """, unsafe_allow_html=True, ) def set_page_title(title): st.sidebar.markdown(unsafe_allow_html=True, body=f"""