dammy commited on
Commit
b899551
1 Parent(s): 18eb562

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -6,19 +6,12 @@ examples_ = [
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
 
9
- 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!"
10
 
11
 
12
- demo = gr.load("dammy/esgTweetBERT", src="models", examples= examples_)
13
 
14
- # Create a custom Gradio Interface
15
- iface = gr.Interface(demo, description=interface_description)
16
-
17
-
18
- iface.launch()
19
-
20
-
21
- # demo.launch()
22
 
23
 
24
 
 
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
 
9
+ 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!"
10
 
11
 
12
+ demo = gr.load("dammy/esgTweetBERT", src="models", examples= examples_, title = 'ESG text classifier', description = interface_description)
13
 
14
+ demo.launch()
 
 
 
 
 
 
 
15
 
16
 
17