Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ def classify_text(text, tokenizer, model):
|
|
| 94 |
|
| 95 |
def get_source_credibility(url_or_domain):
|
| 96 |
if not url_or_domain:
|
| 97 |
-
return None, 0.5, "Unknown Source"
|
| 98 |
try:
|
| 99 |
domain = urlparse(url_or_domain).netloc.lower().replace("www.", "")
|
| 100 |
except Exception:
|
|
|
|
| 94 |
|
| 95 |
def get_source_credibility(url_or_domain):
|
| 96 |
if not url_or_domain:
|
| 97 |
+
return None, 0.5, "Unknown Source", "#94a3b8"
|
| 98 |
try:
|
| 99 |
domain = urlparse(url_or_domain).netloc.lower().replace("www.", "")
|
| 100 |
except Exception:
|