Spaces:
Sleeping
Sleeping
Upload main.py
Browse files
main.py
CHANGED
@@ -7,5 +7,7 @@ class Main():
|
|
7 |
self.parser = ResumeParser()
|
8 |
|
9 |
def parse(self, filename):
|
10 |
-
text = self.reader.
|
11 |
-
|
|
|
|
|
|
7 |
self.parser = ResumeParser()
|
8 |
|
9 |
def parse(self, filename):
|
10 |
+
text = self.reader.read(filename)
|
11 |
+
if text is None:
|
12 |
+
return {"error": "Unsupported file format"}
|
13 |
+
return self.parser.parse(text)
|