Kelvinhjk commited on
Commit
791a1d3
·
1 Parent(s): f856e59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ embeddings = OpenAIEmbeddings()
26
  docsearch = FAISS.from_texts(texts, embeddings)
27
 
28
  # Load model
29
- model_path = "/content/drive/MyDrive/Colab_Notebooks/COS30081_NLP/D_HD_Task/models/roberta_model"
30
 
31
  model = TFAutoModelForQuestionAnswering.from_pretrained(model_path)
32
  tokenizer = AutoTokenizer.from_pretrained('deepset/roberta-base-squad2')
 
26
  docsearch = FAISS.from_texts(texts, embeddings)
27
 
28
  # Load model
29
+ model_path = "./models/roberta_model"
30
 
31
  model = TFAutoModelForQuestionAnswering.from_pretrained(model_path)
32
  tokenizer = AutoTokenizer.from_pretrained('deepset/roberta-base-squad2')