Subha95 commited on
Commit
436e90f
·
verified ·
1 Parent(s): 5bafd9a

Update chatbot_rag.py

Browse files
Files changed (1) hide show
  1. chatbot_rag.py +1 -1
chatbot_rag.py CHANGED
@@ -34,7 +34,7 @@ def build_qa():
34
  model = AutoModelForSeq2SeqLM.from_pretrained(model_id, device_map="auto")
35
 
36
  pipe = pipeline(
37
- "text-generation",
38
  model=model,
39
  tokenizer=tokenizer,
40
  max_new_tokens=300,
 
34
  model = AutoModelForSeq2SeqLM.from_pretrained(model_id, device_map="auto")
35
 
36
  pipe = pipeline(
37
+ "text2text-generation",
38
  model=model,
39
  tokenizer=tokenizer,
40
  max_new_tokens=300,