Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,7 +163,7 @@ def combine_predictions(url_probs, html_probs, url_weight=0.3, html_weight=0.7):
|
|
| 163 |
# --------- Inference function ----------
|
| 164 |
def predict_fn(text: str):
|
| 165 |
if not text or not text.strip():
|
| 166 |
-
return
|
| 167 |
|
| 168 |
# Check if input is URL
|
| 169 |
if is_url(text.strip()):
|
|
|
|
| 163 |
# --------- Inference function ----------
|
| 164 |
def predict_fn(text: str):
|
| 165 |
if not text or not text.strip():
|
| 166 |
+
return "<div style='color: red; padding: 20px; text-align: center;'>⚠️ Please enter a URL or text to analyze.</div>"
|
| 167 |
|
| 168 |
# Check if input is URL
|
| 169 |
if is_url(text.strip()):
|