Spaces:
Runtime error
Runtime error
wrapper228
commited on
Commit
•
31552bd
1
Parent(s):
f720766
Update app.py
Browse files
app.py
CHANGED
@@ -48,5 +48,7 @@ abstract = st.text_area("Write article abstract:", height=60)
|
|
48 |
|
49 |
input_text = title + " " + abstract
|
50 |
|
|
|
|
|
51 |
if len(input_text.split()) > 0:
|
52 |
predict_topic_by_title_and_abstract(input_text)
|
|
|
48 |
|
49 |
input_text = title + " " + abstract
|
50 |
|
51 |
+
input_text = ''.join(filter(str.isalnum, input_text))
|
52 |
+
|
53 |
if len(input_text.split()) > 0:
|
54 |
predict_topic_by_title_and_abstract(input_text)
|