Spaces:
Runtime error
Runtime error
Commit
·
4c57eb5
1
Parent(s):
f98a663
changes
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def suggest_topic(topic_classifier,text):
|
|
16 |
# text = summarize(whole_text[:-10])
|
17 |
|
18 |
possible_topics = ["Gadgets", 'Business','Finance', 'Health', 'Sports', 'Politics','Government','Science','Education', 'Travel', 'Tourism', 'Finance & Economics','Market','Technology','Scientific Discovery',
|
19 |
-
'Entertainment','Environment','News & Media' "Space,Universe & Cosmos", "Fashion", "Manufacturing and Constructions","Law & Crime","Motivation", "Development & Socialization", "Archeology"]
|
20 |
|
21 |
result = topic_classifier(text, possible_topics)
|
22 |
|
|
|
16 |
# text = summarize(whole_text[:-10])
|
17 |
|
18 |
possible_topics = ["Gadgets", 'Business','Finance', 'Health', 'Sports', 'Politics','Government','Science','Education', 'Travel', 'Tourism', 'Finance & Economics','Market','Technology','Scientific Discovery',
|
19 |
+
'Entertainment','Environment','News & Media', "Space,Universe & Cosmos", "Fashion", "Manufacturing and Constructions","Law & Crime","Motivation", "Development & Socialization", "Archeology"]
|
20 |
|
21 |
result = topic_classifier(text, possible_topics)
|
22 |
|