Spaces:
Running
Running
File size: 383 Bytes
d33788c 393f274 d33788c 393f274 77cdd98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from reader import ResumeReader
from resume_parser import ResumeParser
class Main():
def __init__(self):
self.reader = ResumeReader()
self.parser = ResumeParser()
def parse(self, filename):
text = self.reader.read(filename)
if text is None:
return {"error": "Unsupported file format"}
return self.parser.parse(text) |