Spaces:
Build error
Build error
Anupam251272
commited on
Commit
•
081374c
1
Parent(s):
e1a015b
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
22 |
print(f"Running on: {device}")
|
23 |
|
24 |
-
|
25 |
# Updated career database
|
26 |
CAREER_RECOMMENDATIONS = [
|
27 |
{"title": "Software Engineer", "description": "Develops software applications and systems", "skills":["Python","Java","C++","JavaScript", "Software Development","Database Management","Web Development", "Cloud Computing","Data Structures", "Algorithms"]},
|
@@ -67,6 +66,7 @@ def extract_text_from_pdf(file_path):
|
|
67 |
except Exception as e:
|
68 |
print(f"Error extracting PDF text: {e}")
|
69 |
return ""
|
|
|
70 |
def preprocess_cv_text(text):
|
71 |
"""
|
72 |
Preprocess CV text for analysis
|
|
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
22 |
print(f"Running on: {device}")
|
23 |
|
|
|
24 |
# Updated career database
|
25 |
CAREER_RECOMMENDATIONS = [
|
26 |
{"title": "Software Engineer", "description": "Develops software applications and systems", "skills":["Python","Java","C++","JavaScript", "Software Development","Database Management","Web Development", "Cloud Computing","Data Structures", "Algorithms"]},
|
|
|
66 |
except Exception as e:
|
67 |
print(f"Error extracting PDF text: {e}")
|
68 |
return ""
|
69 |
+
|
70 |
def preprocess_cv_text(text):
|
71 |
"""
|
72 |
Preprocess CV text for analysis
|