dammy commited on
Commit
2a69d92
·
1 Parent(s): 2e59eac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -13,11 +13,19 @@ import gradio as gr
13
 
14
  # demo.launch()
15
 
16
- import gradio as gr
17
 
18
- demo = gr.load("dammy/esgTweetBERT", src="models")
 
 
 
 
 
 
 
 
 
19
 
20
- demo.launch()
21
 
22
  #import gradio as gr
23
 
 
13
 
14
  # demo.launch()
15
 
 
16
 
17
+ examples = [
18
+ ["Taking a stand against modern slavery. Ethical practices, slavery-free supply chains. Join us in championing justice. ⛓️❌ #EndModernSlavery #EthicalBusiness"],
19
+ ["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,
20
+ "Deeply troubled by recent revelations about [CEO's Name]. 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"],
21
+ ]
22
+
23
+ interface_description = "Explore ESG-related tweet generation using the ESG Tweet BERT model. Simply enter a question or input, and observe the model's responses. Feel free to use the provided examples for inspiration!"
24
+
25
+
26
+ demo = gr.load("dammy/esgTweetBERT", src="models", examples=examples)
27
 
28
+ demo.launch(description=interface_description)
29
 
30
  #import gradio as gr
31