CineAI commited on
Commit
b32ff0a
·
verified ·
1 Parent(s): 5cc25cc

Update llm/llm_factory.py

Browse files
Files changed (1) hide show
  1. llm/llm_factory.py +2 -1
llm/llm_factory.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Dict, List
2
 
3
  from .huggingfacehub.hf_model import HF_Mistaril, HF_TinyLlama
4
  from .llamacpp.lc_model import LC_TinyLlama, LC_Phi3
@@ -11,6 +11,7 @@ class LLM_Factory:
11
  def create_llm(prompt_entity: str, prompt_id: int, trigger: Dict[str, str]):
12
 
13
  if trigger.keys() == "hf" and trigger.values() == "effective":
 
14
  model = HF_Mistaril(prompt_entity=prompt_entity, prompt_id=prompt_id)
15
  elif trigger.keys() == "hf" and trigger.values() == "small":
16
  model = HF_TinyLlama(prompt_entity=prompt_entity, prompt_id=prompt_id)
 
1
+ from typing import Dict
2
 
3
  from .huggingfacehub.hf_model import HF_Mistaril, HF_TinyLlama
4
  from .llamacpp.lc_model import LC_TinyLlama, LC_Phi3
 
11
  def create_llm(prompt_entity: str, prompt_id: int, trigger: Dict[str, str]):
12
 
13
  if trigger.keys() == "hf" and trigger.values() == "effective":
14
+ print(trigger)
15
  model = HF_Mistaril(prompt_entity=prompt_entity, prompt_id=prompt_id)
16
  elif trigger.keys() == "hf" and trigger.values() == "small":
17
  model = HF_TinyLlama(prompt_entity=prompt_entity, prompt_id=prompt_id)