Gachomba commited on
Commit
9679e92
1 Parent(s): 6c76d84

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -26,11 +26,11 @@ More information needed
26
  ## Intended uses & limitations
27
 
28
  ### Sample Usage
29
- def generate_question(context):\n
30
- \t inputs = tokenizer(context, return_tensors="pt")\n \t
31
  output = model.generate(**inputs)
32
- question = tokenizer.decode(output[0], skip_special_tokens=True)\n \t
33
- return question \n
34
  print(generate_question("Paris is the capital city of France"))
35
  ## Training and evaluation data
36
 
 
26
  ## Intended uses & limitations
27
 
28
  ### Sample Usage
29
+ def generate_question(context):
30
+ inputs = tokenizer(context, return_tensors="pt")
31
  output = model.generate(**inputs)
32
+ question = tokenizer.decode(output[0], skip_special_tokens=True)
33
+ return question
34
  print(generate_question("Paris is the capital city of France"))
35
  ## Training and evaluation data
36