enricorampazzo commited on
Commit
7dfaba7
1 Parent(s): 7648566

added linux intel-npu library dependency wheel, hopefully HF will install it and shut up

Browse files
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
37
+ deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
form/form.py CHANGED
@@ -30,7 +30,8 @@ def build_form_data_from_answers(answers: dict[int, str], categories: list[str],
30
  return form_data
31
 
32
  def write_pdf_form(form_data: dict[str, str | bool | int], output_path:Path):
33
- base_form_path = Path(__file__, "..", "form.pdf")
 
34
  with open(base_form_path, "rb") as blank_form:
35
  filled_form = PdfWrapper(blank_form).fill(form_data)
36
  with open(output_path, "wb+") as filled_form_file:
 
30
  return form_data
31
 
32
  def write_pdf_form(form_data: dict[str, str | bool | int], output_path:Path):
33
+ base_form_path = Path(__file__).parent
34
+ base_form_path = base_form_path.joinpath("form.pdf")
35
  with open(base_form_path, "rb") as blank_form:
36
  filled_form = PdfWrapper(blank_form).fill(form_data)
37
  with open(output_path, "wb+") as filled_form_file:
llm_manager/llm_parser.py CHANGED
@@ -41,5 +41,5 @@ class LlmParser:
41
  def parse_get_categories_answer(cls, category_answer) -> list[str]:
42
  categories = []
43
  for category in category_answer.split(";"):
44
- categories.extend([k for k, v in work_categories.items() if category in v])
45
  return categories
 
41
  def parse_get_categories_answer(cls, category_answer) -> list[str]:
42
  categories = []
43
  for category in category_answer.split(";"):
44
+ categories.extend([k for k, v in work_categories.items() if category.lower() in v.lower()])
45
  return categories
requirements.txt CHANGED
@@ -2,4 +2,5 @@ PyPDFForm
2
  ollama
3
  transformers
4
  streamlit
5
- # deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-win_amd64.whl
 
 
2
  ollama
3
  transformers
4
  streamlit
5
+ deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-win_amd64.whl ; sys_platform == "windows"
6
+ deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-linux_x86_64.whl ; sys_platform == "linux"