Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def classify_educational_article(text: str) -> int:
|
|
38 |
"""
|
39 |
Classifier for judging the educational value of web pages.
|
40 |
Args:
|
41 |
-
|
42 |
Returns:
|
43 |
-
|
44 |
"""
|
45 |
from transformers import pipeline
|
46 |
# Perform classification
|
|
|
38 |
"""
|
39 |
Classifier for judging the educational value of web pages.
|
40 |
Args:
|
41 |
+
text: The content of the educational article to be classified.
|
42 |
Returns:
|
43 |
+
int: This function will output a dictionary with the input text, the predicted score, and an integer score between 0 and 5
|
44 |
"""
|
45 |
from transformers import pipeline
|
46 |
# Perform classification
|