Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,7 +129,7 @@ def analyze(text):
|
|
| 129 |
)
|
| 130 |
highlighted_html += "</div>"
|
| 131 |
|
| 132 |
-
label = "AI Content Detected" if weighted_avg >= THRESHOLD else "
|
| 133 |
df = pd.DataFrame({"Sentence": pure_sents, "AI Confidence": [f"{p:.1%}" for p in probs]})
|
| 134 |
|
| 135 |
return label, f"{weighted_avg:.1%}", highlighted_html, df
|
|
|
|
| 129 |
)
|
| 130 |
highlighted_html += "</div>"
|
| 131 |
|
| 132 |
+
label = "AI Content Detected" if weighted_avg >= THRESHOLD else "0 or * AI Content Detected"
|
| 133 |
df = pd.DataFrame({"Sentence": pure_sents, "AI Confidence": [f"{p:.1%}" for p in probs]})
|
| 134 |
|
| 135 |
return label, f"{weighted_avg:.1%}", highlighted_html, df
|