Spaces:
Running
Running
Upload main.py
Browse files
main.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from reader import Reader
|
2 |
+
from resume_parser import Parser
|
3 |
+
|
4 |
+
class Main():
|
5 |
+
def __init__(self):
|
6 |
+
self.reader = Reader()
|
7 |
+
self.parser = Parser()
|
8 |
+
|
9 |
+
def parse(self, filename):
|
10 |
+
text = self.reader.read(filename)
|
11 |
+
return self.parser.parse(text)
|