Spaces:
Runtime error
Runtime error
Update models.py
Browse files
models.py
CHANGED
@@ -22,12 +22,12 @@ def extract_text_from_pdf(pdf_file):
|
|
22 |
return text
|
23 |
|
24 |
# Initialize the Gemma model
|
25 |
-
gemma_pipe = pipeline(
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
)
|
31 |
|
32 |
# Initialize the Bloom model
|
33 |
bloom_model = BloomForCausalLM.from_pretrained("bigscience/bloom-560m")
|
@@ -143,7 +143,7 @@ def evaluate_with_jabir(pdf_file, job_description):
|
|
143 |
# model=model,
|
144 |
# model_kwargs={"torch_dtype": torch.bfloat16},
|
145 |
# device_map="auto",
|
146 |
-
)
|
147 |
|
148 |
# def evaluate_with_llama(resume_text, job_description):
|
149 |
# keywords = "وضعیت خدمت سربازی، سن، محل سکونت، محدوده حقوق پرداختی، میزان سابقه کار مدیریتی، میزان سابقه کار مرتبط با گروه شغلی مشابه، میزان سابقه کار در صنعت، میزان تحصیلات، مهارت زبان، مهارت های نرم افزاری"
|
|
|
22 |
return text
|
23 |
|
24 |
# Initialize the Gemma model
|
25 |
+
# gemma_pipe = pipeline(
|
26 |
+
# "text-generation",
|
27 |
+
# model="google/gemma-2-2b-it",
|
28 |
+
# model_kwargs={"torch_dtype": torch.bfloat16},
|
29 |
+
# device="cpu"
|
30 |
+
# )
|
31 |
|
32 |
# Initialize the Bloom model
|
33 |
bloom_model = BloomForCausalLM.from_pretrained("bigscience/bloom-560m")
|
|
|
143 |
# model=model,
|
144 |
# model_kwargs={"torch_dtype": torch.bfloat16},
|
145 |
# device_map="auto",
|
146 |
+
# )
|
147 |
|
148 |
# def evaluate_with_llama(resume_text, job_description):
|
149 |
# keywords = "وضعیت خدمت سربازی، سن، محل سکونت، محدوده حقوق پرداختی، میزان سابقه کار مدیریتی، میزان سابقه کار مرتبط با گروه شغلی مشابه، میزان سابقه کار در صنعت، میزان تحصیلات، مهارت زبان، مهارت های نرم افزاری"
|