import gradio as gr examples_ = [ ["Taking a stand against modern slavery. Ethical practices, slavery-free supply chains. Join us in championing justice. #EndModernSlavery #EthicalBusiness"], ["Climate change is a grave concern for humanity. It demands urgent attention and collective action. Let's come together to address this global challenge and work towards a sustainable future for all. 🌍🤝 #ClimateChange #Sustainability"], ["Deeply troubled by recent revelations about the CEO. Allegations of misconduct raise serious concerns about leadership ethics. As consumers, we must hold leaders accountable for their actions. Transparency and accountability are non-negotiable. #CorporateEthics #Accountability"] ] interface_description = "Explore ESG-related classification using the ESG BERT model. Simply enter a question or input, and observe the model's responses. Feel free to use the provided examples for inspiration!" demo = gr.load("dammy/esgTweetBERT", src="models", examples= examples_, title = 'ESG text classifier', description = interface_description) demo.launch()