llmahmad commited on
Commit
e87d4c5
1 Parent(s): c59c8c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline, AutoModelForSeq2SeqLM, AutoTokenizer
3
 
4
 
5
  # Load model and tokenizer
6
- model_name = "t5_history_qa"
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
9
  qa_pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
 
3
 
4
 
5
  # Load model and tokenizer
6
+ model_name = "t5_qa_model.pt"
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
9
  qa_pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)