CoolFace
Apppublic

dammy/esgClassifier

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
app.py22 linesDownload Raw Back to root
1import gradio as gr2 3examples_ = [4    ["Taking a stand against modern slavery. Ethical practices, slavery-free supply chains. Join us in championing justice. #EndModernSlavery #EthicalBusiness"],5    ["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"],6    ["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"]7]8 9interface_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!"10 11 12demo = gr.load("dammy/esgTweetBERT", src="models", examples= examples_, title = 'ESG text classifier', description = interface_description)13 14demo.launch()15 16 17 18 19 20 21 22