christinacdl commited on
Commit
a4fd093
1 Parent(s): 6988a7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def text_classification(text):
7
  result= classifier(text)
8
  label = result[0]['label']
9
  score = result[0]['score']
10
- formatted_output = f"The text is {label}. I am {score*100:.2f}% sure!"
11
  return formatted_output
12
 
13
  examples=["Your Old Passport Will Be Replaced With Smart E-passport, Here Is Everything You Need To Know", "17 Things That Are Too Real For People Who Always Drop Their Phone"]
 
7
  result= classifier(text)
8
  label = result[0]['label']
9
  score = result[0]['score']
10
+ formatted_output = f"The text's label is {label}. I am {score*100:.2f}% sure!"
11
  return formatted_output
12
 
13
  examples=["Your Old Passport Will Be Replaced With Smart E-passport, Here Is Everything You Need To Know", "17 Things That Are Too Real For People Who Always Drop Their Phone"]