sefinch commited on
Commit
c34f72e
1 Parent(s): 6fde712

Update README.md

Browse files

Fixed typo in line `qa = pipeline({"question-answering", model=model, tokenizer=tokenizer)` by removing leading curly bracket, so code example can be copied and pasted to run directly.

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -81,7 +81,7 @@ ckpt = "mrm8488/longformer-base-4096-finetuned-squadv2"
81
  tokenizer = AutoTokenizer.from_pretrained(ckpt)
82
  model = AutoModelForQuestionAnswering.from_pretrained(ckpt)
83
 
84
- qa = pipeline({"question-answering", model=model, tokenizer=tokenizer)
85
 
86
  text = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
87
  question = "What has Huggingface done?"
 
81
  tokenizer = AutoTokenizer.from_pretrained(ckpt)
82
  model = AutoModelForQuestionAnswering.from_pretrained(ckpt)
83
 
84
+ qa = pipeline("question-answering", model=model, tokenizer=tokenizer)
85
 
86
  text = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
87
  question = "What has Huggingface done?"