Spaces:
Sleeping
Sleeping
Deploying app.py
Browse files
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']
|