Gowtham122 commited on
Commit
c8e3a10
·
verified ·
1 Parent(s): 2712129

Update app/models.py

Browse files
Files changed (1) hide show
  1. app/models.py +1 -1
app/models.py CHANGED
@@ -112,7 +112,7 @@ def load_qa_pipeline(model_name: str = "Gowtham122/albertqa"):
112
  local_path=str(MODEL_DIR / model_name.replace("/", "-")),
113
  cloud_uri=model_name, # Hugging Face model ID
114
  )
115
- qa_model = QAModel()
116
  return qa_model
117
 
118
  def inference_qa(qa_pipeline, context: str, question: str):
 
112
  local_path=str(MODEL_DIR / model_name.replace("/", "-")),
113
  cloud_uri=model_name, # Hugging Face model ID
114
  )
115
+ qa_model = QAModel(model_name,model_location)
116
  return qa_model
117
 
118
  def inference_qa(qa_pipeline, context: str, question: str):