Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -952,7 +952,6 @@
|
|
| 952 |
|
| 953 |
|
| 954 |
|
| 955 |
-
|
| 956 |
import os
|
| 957 |
import re
|
| 958 |
import pdfplumber
|
|
@@ -1002,8 +1001,8 @@ CLIENT_PATTERNS = [
|
|
| 1002 |
]
|
| 1003 |
|
| 1004 |
EXPERIENCE_PATTERNS = [
|
| 1005 |
-
re.compile(r"(?i)(?:worked\s*(?:at|for|with)|employed\s*(?:at|by)|joined|position\s*at)\s*([A-Z][\w\s&.,-]+?)\s*(?:as\s*([A-Z][\w\s&.,-]+?))?(?:\s*[-β]\s*(
|
| 1006 |
-
re.compile(r"(?i)^\s*[-β’]\s*([A-Z][\w\s&.,-]+?)(?:\s*(?:Ltd|Inc|LLC|Corp|Corporation|Pvt|Private|Technologies|Solutions|Group|Consulting|Partners|Infotech|Services|International|Associates|Enterprise|Company|Co))?\s*(?:as\s*([A-Z][\w\s&.,-]+?))?\s*(?:[-β]\s*(
|
| 1007 |
]
|
| 1008 |
|
| 1009 |
non_commercial_patterns = [
|
|
@@ -1454,4 +1453,4 @@ with gr.Blocks(title="Resume Company and Client Extractor") as demo:
|
|
| 1454 |
submit_button.click(fn=gradio_process_resumes, inputs=file_input, outputs=output)
|
| 1455 |
|
| 1456 |
# Launch the Gradio app (not needed for Hugging Face Spaces)
|
| 1457 |
-
demo.launch()
|
|
|
|
| 952 |
|
| 953 |
|
| 954 |
|
|
|
|
| 955 |
import os
|
| 956 |
import re
|
| 957 |
import pdfplumber
|
|
|
|
| 1001 |
]
|
| 1002 |
|
| 1003 |
EXPERIENCE_PATTERNS = [
|
| 1004 |
+
re.compile(r"(?i)(?:worked\s*(?:at|for|with)|employed\s*(?:at|by)|joined|position\s*at)\s*([A-Z][\w\s&.,-]+?)\s*(?:as\s*([A-Z][\w\s&.,-]+?))?(?:\s*[-β]\s*(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s*\d{4}\s*[-β]\s*(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s*\d{4}|Present|Current)))?(.*?)(?=(?:\n\s*\n|\n\s*[-β’]|$))", re.DOTALL),
|
| 1005 |
+
re.compile(r"(?i)^\s*[-β’]\s*([A-Z][\w\s&.,-]+?)(?:\s*(?:Ltd|Inc|LLC|Corp|Corporation|Pvt|Private|Technologies|Solutions|Group|Consulting|Partners|Infotech|Services|International|Associates|Enterprise|Company|Co))?\s*(?:as\s*([A-Z][\w\s&.,-]+?))?\s*(?:[-β]\s*(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s*\d{4}\s*[-β]\s*(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s*\d{4}|Present|Current)))?(.*?)(?=(?:\n\s*\n|\n\s*[-β’]|$))", re.DOTALL)
|
| 1006 |
]
|
| 1007 |
|
| 1008 |
non_commercial_patterns = [
|
|
|
|
| 1453 |
submit_button.click(fn=gradio_process_resumes, inputs=file_input, outputs=output)
|
| 1454 |
|
| 1455 |
# Launch the Gradio app (not needed for Hugging Face Spaces)
|
| 1456 |
+
demo.launch()
|