sks01dev commited on
Commit
9b15907
·
verified ·
1 Parent(s): e23b8f4

Deploying app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -16,8 +16,6 @@ def predict(headline):
16
  # Runs inference and formats the output dictionary for Gradio Label
17
  results = classifier(headline)[0]
18
 
19
- # Map generic LABEL_X to clear, human-readable output
20
- # NOTE: results[0] is typically LABEL_0, results[1] is LABEL_1
21
  formatted_output = {
22
  "NOT CLICKBAIT (0)": results[0]['score'],
23
  "CLICKBAIT (1)": results[1]['score']
 
16
  # Runs inference and formats the output dictionary for Gradio Label
17
  results = classifier(headline)[0]
18
 
 
 
19
  formatted_output = {
20
  "NOT CLICKBAIT (0)": results[0]['score'],
21
  "CLICKBAIT (1)": results[1]['score']