themanas021 commited on
Commit
bf31268
·
1 Parent(s): c262133

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -3,14 +3,7 @@ from transformers import pipeline
3
 
4
  senti_pipeline = pipeline("sentiment-analysis")
5
 
6
- result= senti_pipeline("I am extremely happy to share this video with all of you")
7
- result
8
 
9
- sentiment_label = result[0]['label']
10
- sentiment_score = result[0]['score']
11
-
12
- formatted_output = f"This sentiment is {sentiment_label} with the probability {sentiment_score*100:.2f}%"
13
- print(formatted_output)
14
 
15
  app_inputs = gr.inputs.Textbox(lines=2, placeholder="Enter title here...")
16
 
 
3
 
4
  senti_pipeline = pipeline("sentiment-analysis")
5
 
 
 
6
 
 
 
 
 
 
7
 
8
  app_inputs = gr.inputs.Textbox(lines=2, placeholder="Enter title here...")
9