Spaces:
Runtime error
Runtime error
Commit ·
fa1b5a7
1
Parent(s): e563e42
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ def predict_2(txt_url, normalized_content_with_style):
|
|
| 119 |
|
| 120 |
if txt_url.startswith("http://") or txt_url.startswith("https://"):
|
| 121 |
predicted_label_title, confidence_score_title, predicted_label_content, confidence_scores_content, new_data = check_by_url(txt_url)
|
| 122 |
-
elif
|
| 123 |
model = DistilBertForSequenceClassification.from_pretrained(Save_model)
|
| 124 |
tokenizer = DistilBertTokenizer.from_pretrained(Save_model)
|
| 125 |
|
|
|
|
| 119 |
|
| 120 |
if txt_url.startswith("http://") or txt_url.startswith("https://"):
|
| 121 |
predicted_label_title, confidence_score_title, predicted_label_content, confidence_scores_content, new_data = check_by_url(txt_url)
|
| 122 |
+
elif text_url.startswith(""):
|
| 123 |
model = DistilBertForSequenceClassification.from_pretrained(Save_model)
|
| 124 |
tokenizer = DistilBertTokenizer.from_pretrained(Save_model)
|
| 125 |
|