Update README.md
Browse files
README.md
CHANGED
|
@@ -26,11 +26,11 @@ More information needed
|
|
| 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 |
|
|
|
|
| 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 |
|