Spaces:
Runtime error
Runtime error
added Makefile and app.py
Browse files
Makefile
CHANGED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
pipeline:
|
2 |
+
python app.py
|
3 |
+
|
4 |
+
setup:
|
5 |
+
pip install -r requirements.txt
|
app.py
CHANGED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from textclassifier import TextClassifier as tc
|
2 |
+
|
3 |
+
|
4 |
+
def main():
|
5 |
+
"""
|
6 |
+
Main function. Runs the program.
|
7 |
+
:return: None
|
8 |
+
"""
|
9 |
+
from_date = input("Enter from date (YYYY-MM-DD): ")
|
10 |
+
to_date = input("Enter to date (YYYY-MM-DD): ")
|
11 |
+
user_name = input("Enter user name: ")
|
12 |
+
text_classifier = tc.TextClassifier(from_date=from_date, to_date=to_date, user_name=user_name, num_tweets=20)
|
13 |
+
text_classifier.run_main_pipeline()
|