Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Dzhamb
/
ArticleClassification
like
0
Runtime error
App
Files
Files
Community
Dzhamb
commited on
Mar 26, 2022
Commit
a6c4164
•
1 Parent(s):
ca8cfa6
Update utils.py
Browse files
Files changed (1)
hide
show
utils.py
+12
-0
utils.py
CHANGED
Viewed
@@ -0,0 +1,12 @@
1
+
def get_text(title: str, abstract: str):
2
+
if abstract and title:
3
+
text = abstract + ' ' + title
4
+
elif title:
5
+
text = title
6
+
else:
7
+
text = None
8
+
9
+
return text
10
+
11
+
def get_label():
12
+
pass