m7mdal7aj commited on
Commit
e59b1eb
1 Parent(s): dd674b3

Update my_model/KBVQA.py

Browse files
Files changed (1) hide show
  1. my_model/KBVQA.py +4 -1
my_model/KBVQA.py CHANGED
@@ -52,7 +52,10 @@ class KBVQA:
52
  def __init__(self):
53
 
54
  # self.col1, self.col2, self.col3 = st.columns([0.2, 0.6, 0.2])
55
- self.kbvqa_model_name: str = config.KBVQA_MODEL_NAME
 
 
 
56
  self.quantization: str = config.QUANTIZATION
57
  self.max_context_window: int = config.MAX_CONTEXT_WINDOW
58
  self.add_eos_token: bool = config.ADD_EOS_TOKEN
 
52
  def __init__(self):
53
 
54
  # self.col1, self.col2, self.col3 = st.columns([0.2, 0.6, 0.2])
55
+ if st.session_state["method"] == "7b-Fine-Tuned Model":
56
+ self.kbvqa_model_name: str = config.KBVQA_MODEL_NAME_7b
57
+ elif st.session_state["method"] == "13b-Fine-Tuned Model":
58
+ self.kbvqa_model_name: str = config.KBVQA_MODEL_NAME_13b
59
  self.quantization: str = config.QUANTIZATION
60
  self.max_context_window: int = config.MAX_CONTEXT_WINDOW
61
  self.add_eos_token: bool = config.ADD_EOS_TOKEN